Comparison doesn't seem to use locale-specific rules by default there, so limit the changes of 09c22b080e (Fix listboxtest test failing under wxQt, 2023-10-08) to Windows and check for the actually observed order under Unix. Closes #26759.
09c22b080e