public function order($order, $context) {
		if (!$order) {
			return [];
		}
		if (is_string($order)) {
			return [$order => 1];
		}
		if (!is_array($order)) {
			return [];
		}
		foreach ($order as $key => $value) {
			if (!is_string($key)) {
				unset($order[$key]);
				$order[$value] = 1;
				continue;
			}
			if (is_string($value)) {
				$order[$key] = strtolower($value) === 'asc' ? 1 : -1;
			}
		}
		return $order;
	}
public function order($order, $context) {
		if (!$order) {
			return [];
		}
		if (is_string($order)) {
			return [$order => 1];
		}
		if (!is_array($order)) {
			return [];
		}
		foreach ($order as $key => $value) {
			if (!is_string($key)) {
				unset($order[$key]);
				$order[$value] = 1;
				continue;
			}
			if (is_string($value)) {
				$order[$key] = strtolower($value) === 'asc' ? 1 : -1;
			}
		}
		return $order;
	}
public function order ( $ order , $ context ) { if ( ! $ order ) { return [ ] ; } if ( is_string ( $ order ) ) { return [ $ order => 1 ] ; } if ( ! is_array ( $ order ) ) { return [ ] ; } foreach ( $ order as $ key => $ value ) { if ( ! is_string ( $ key ) ) { unset ( $ order [ $ key ] ) ; $ order [ $ value ] = 1 ; continue ; } if ( is_string ( $ value ) ) { $ order [ $ key ] = strtolower ( $ value ) === 'asc' ? 1 : - 1 ; } } return $ order ; }
Return formatted clause for order.

@param mixed $order The `order` clause to be formatted
@param object $context
@return mixed Formatted `order` clause.
Return formatted clause for order .