ID:2526713
 
Resolved
sorttext() behaved incorrectly when comparing non-English text such as Cyrillic. Correct behavior is to consider the relative order of the Unicode code point for the uppercase version (if any) of a letter.
BYOND Version:513.1501
Operating System:Windows 10 Home
Web Browser:Chrome 78.0.3904.108
Applies to:Dream Daemon
Status: Resolved (513.1502)

This issue has been resolved.
Descriptive Problem Summary:
sorttext is broken when using cyrillic symbols.

Code Snippet (if applicable) to Reproduce Problem:
https://pastebin.com/ZvinCZ9j

Expected Results:
k: 1 //ascending

Actual Results:
k: -1 //descending

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked?
Not occured in 512.
Lummox JR resolved issue with message:
sorttext() behaved incorrectly when comparing non-English text such as Cyrillic. Correct behavior is to consider the relative order of the Unicode code point for the uppercase version (if any) of a letter.

Login to reply.