sortRemoteEntries
function sortRemoteEntries( entries: readonly RemoteEntry[], key?: RemoteEntrySortKey, order?: RemoteEntrySortOrder): RemoteEntry[];Defined in: src/sync/createRemoteBrowser.ts:123
Returns a copy of the supplied entries sorted by the requested key. Directories are grouped before files within ascending sorts, matching common file-manager UX.
Parameters
Section titled “Parameters”| Parameter | Type | Default value | Description |
|---|---|---|---|
entries | readonly RemoteEntry[] | undefined | Entries to sort. |
key | RemoteEntrySortKey | "name" | Sort key. |
order | RemoteEntrySortOrder | "asc" | Sort order. |
Returns
Section titled “Returns”Sorted copy of the entries.