ImageEn, unit iexFolderMView |
|
TImageEnFolderMView.SortOrder
Declaration
property SortOrder: TIEImageEnMViewSortBy;
Description
The order in which your files are displayed. You can reverse the sort order by setting
SortOptions.
Note: you can set both sort properties at once, using
SetSortOrderEx.
Example 1
// Sort by filename
IEFolderMView1.SortOrder := iesbFilename;
Example 2
// Sort by filename considering any digits within the name
// e.g. img1.jpg, img10.jpg, img11.jpg, img2.jpg, img20.jpg will be sorted as img1.jpg, img2.jpg, img10.jpg, img11.jpg, img20.jpg
IEFolderMView1.LockUpdate();
try
IEFolderMView1.SortOrder := iesbFilename;
IEFolderMView1.SortOptions := [ iesNaturalSorting ];
finally
IEFolderMView1.UnlockUpdate();
end;
// Which is the same as:
IEFolderMView1.SetSortOrderEx(iesbFilename, False);