[Lazarus] "Sort files alphabitically" is case-sensitive :-(

Sven Barth pascaldragon at googlemail.com
Tue Nov 15 09:22:52 CET 2011


Am 15.11.2011 03:01, schrieb Hans-Peter Diettrich:
> Sven Barth schrieb:
>
>>> Consequently project file sorting should be case insensitive, unique
>>> across platforms.
>>
>> But the project inspector does contain the *file* names and not the
>> *unit* names. And these *can* be different (not only in casing),
>> though I personally don't know anyone who uses the "-Un" option which
>> is necessary for this...
>
> Just in case the same filenames with different casing have been added to
> a project, it's important to see all these versions together, and not
> spread across the entire list.
>
> Summary: the case sensitivity of a file system does not imply any
> specific sort order. The same for the sort order in different
> applications (file browsers...). The *display* of a file list has to be
> optimized for *human* reading, i.e. case insensitive unless there exists
> a special important meaning of upper/lower case names.

In the end it's a taste of the individual if he or she wants to have 
units sorted case sensitive or not. Thus it is a good idea to make this 
configurable as Graeme suggested. So in the end everyone can be happy.

Note: I myself prefer case insensitive sorting as well

Regards,
Sven




More information about the Lazarus mailing list