public static function sortQuery($uri)
    {
        return $uri->withQuery((string) (new Query(self::filterUri($uri)->getQuery()))->sort());
    }
public static function sortQuery($uri)
    {
        return $uri->withQuery((string) (new Query(self::filterUri($uri)->getQuery()))->sort());
    }
public static function sortQuery ( $ uri ) { return $ uri -> withQuery ( ( string ) ( new Query ( self :: filterUri ( $ uri ) -> getQuery ( ) ) ) -> sort ( ) ) ; }
Sort the URI query by keys.

@return Psr7UriInterface|UriInterface
Sort the URI query by keys .