ImageEn, unit iexFolderMView

TImageEnFolderMView.SortOrder

TImageEnFolderMView.SortOrder


Declaration


property SortOrder: TIEImageEnMViewSortBy;


Description


The order in which your files are displayed. You can reverse the sort order by setting SortAscending to false.

Note: you can set both sort properties at once, using SetSortOrderEx.


Example 1


// Sort by filename
IEFolderMView1.SortOrder := iesbFilename;


Example 2


// Sort by filename in reverse alphabetical order
IEFolderMView1.LockUpdate();
try
  IEFolderMView1.SortOrder := iesbFilename;
  IEFolderMView1.SortAscending := False;
finally
  IEFolderMView1.UnlockUpdate();
end;

// Which is the same as:
IEFolderMView1.SetSortOrderEx(iesbFilename, False);