constant UriNormalizer::SORT_QUERY_PARAMETERS in Lockr 7.3
Sort query parameters with their values in alphabetical order.
However, the order of parameters in a URI may be significant (this is not defined by the standard). So this normalization is not safe and may change the semantics of the URI.
Example: ?lang=en&article=fred → ?article=fred&lang=en
Note: The sorting is neither locale nor Unicode aware (the URI query does not get decoded at all) as the purpose is to be able to compare URIs in a reproducible way, not to have the params sorted perfectly.
File
- vendor/
guzzlehttp/ psr7/ src/ UriNormalizer.php, line 100
Class
- UriNormalizer
- Provides methods to normalize and compare URIs.
Namespace
GuzzleHttp\Psr7Code
const SORT_QUERY_PARAMETERS = 128;