Ignore case when sorting file bases in UNIX
This commit is contained in:
parent
152cf69383
commit
7e25a22a71
|
@ -168,11 +168,7 @@ Begin
|
||||||
While Not Eof(FDirFile) Do Begin
|
While Not Eof(FDirFile) Do Begin
|
||||||
Read (FDirFile, FDir);
|
Read (FDirFile, FDir);
|
||||||
If (FDir.Flags AND FDirDeleted = 0) Then
|
If (FDir.Flags AND FDirDeleted = 0) Then
|
||||||
{$IFDEF FS_SENSITIVE}
|
|
||||||
SortList.Add(FDir.FileName, FilePos(FDirFile) - 1);
|
|
||||||
{$ELSE}
|
|
||||||
SortList.Add(strUpper(FDir.FileName), FilePos(FDirFile) - 1);
|
SortList.Add(strUpper(FDir.FileName), FilePos(FDirFile) - 1);
|
||||||
{$ENDIF}
|
|
||||||
End;
|
End;
|
||||||
|
|
||||||
SortList.Sort(1, SortList.Total, qAscending);
|
SortList.Sort(1, SortList.Total, qAscending);
|
||||||
|
|
Loading…
Reference in New Issue