The expected results in commit b4fc6457 seem to have been generated in a non-C locale, which just points up the fact that the ORDER BY clause was locale-sensitive. Per buildfarm.
Attach a file by drag & drop or click to upload