[Lazarus] Lazarus support for Sorting is completely inadequate.

Michael Schnell mschnell at lumino.de
Wed Dec 5 12:06:48 CET 2012


On 12/05/2012 11:24 AM, Avishai wrote:
> Non Case Sensitive gives a result like "A a a A A a A".  This is a
> form of randomness.
>
>
If course: if the sort order considers things to be equal while the 
display considers them to be not equal, the sorted result looks random. 
This is by design. And with Unicode this and/or the vice versa case 
(characters that look identical but are coded in multiple ways) is 
unavoidable.

But besides "not case sensitive" ("A" and "a" are sorted as equal) you 
can define sort orders like

....ABCDE....abcde....

or

....AaBbCcDdEe....

or

....aAbBcCdDeD...


or (regarding German)

....AB.....Ä....

or

....AÄB....

which all make sense in appropriate applications.

-Michael






More information about the Lazarus mailing list