Sort TTMSFNCCloudItems alphabetically

Hello,

is it possible to sort the file items alphabetically? It seems OneDrive give back the file list sorted, but Dropbox and Google Drive not.

Hi,

The file items are added to the list in the default order as they are received from the service.
Unfortunately there is currently no built-in functionality to sort the file items.
However this is a good suggestion and we'll consider adding sorting functionality in the future.

Hi,

thanks for the fast answer. I found my own solution.
In onGetFolderList() I use the following small function. Maybe someone need this solution.

  AItems.Sort(TComparer<TCollectionItem>.Construct(
    function (const item1, item2: TCollectionItem): integer
    begin
      Result := AnsiCompareText(TTMSFNCCloudItem(item1).FileName, TTMSFNCCloudItem(item2).FileName)
    end)
  );

Small impovement: before sort check If AItems <> NIL;