mc/lib/strutil
Andrew Borodin 4aec2187e1 Ticket #1894: sort order should not mix hidden files with others.
In case sensitive sort, the order of files and directories is following:
hidden dirs
dirs
hidden files
files

In case insensitive mode, directories are mixed and files are mixed too:
dirs (hidden and not are mixed)
files (hidden and not are mixed).

This commit defines the sort order independently of case sensitivity:
hidden dirs
dirs
hidden files
files

Files in UTF-8 locale require special handling: leading dot must not be
processed in g_utf8_casefold() funcion.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 15:02:57 +03:00
..
Makefile.am Ticket #1994: Sort files by version (like strverscmp(3) does) 2010-02-22 11:08:37 +02:00
strescape.c identation of code 2010-07-07 14:06:41 +03:00
strutil8bit.c Ticket #2249: fix crash at startup 2010-06-30 10:15:46 +04:00
strutil.c Changes for build after moving strutil into lib 2010-01-26 10:30:24 +02:00
strutilascii.c Changes for build after moving strutil into lib 2010-01-26 10:30:24 +02:00
strutilutf8.c Ticket #1894: sort order should not mix hidden files with others. 2010-11-01 15:02:57 +03:00
strverscmp.c Use system function strverscmp() if exists. 2010-02-22 11:08:37 +02:00