-
Ori authored
This vmod contains the code from Varnish's std.querysort, with the following modifications: 1. Query parameters are sorted by key only. 2. The sort is stable: the relative ordering of duplicate parameters is preserved. Since all query parameters are given as pointers into the URL string, we can make qsort do a stable sort by comparing pointers when the keys are equal.
24a93b1aOri authoredThis vmod contains the code from Varnish's std.querysort, with the following modifications: 1. Query parameters are sorted by key only. 2. The sort is stable: the relative ordering of duplicate parameters is preserved. Since all query parameters are given as pointers into the URL string, we can make qsort do a stable sort by comparing pointers when the keys are equal.
This project is licensed under the BSD 2-Clause "Simplified" License.
Learn more
Loading