LibWeb: Use infra sorting for URLSearchParam's sort()

Adopts editiorial change to the URL spec of:

59979a1
This commit is contained in:
Shannon Booth 2025-05-12 20:01:56 +12:00 committed by Jelle Raaijmakers
commit b478274e0b
Notes: github-actions[bot] 2025-05-12 09:21:34 +00:00
2 changed files with 5 additions and 13 deletions

View file

@ -150,6 +150,8 @@ String isomorphic_decode(ReadonlyBytes input)
// https://infra.spec.whatwg.org/#code-unit-less-than
bool code_unit_less_than(StringView a, StringView b)
{
// FIXME: There should be a way to do this without converting to utf16
// 1. If b is a code unit prefix of a, then return false.
if (is_code_unit_prefix(b, a))
return false;