Interface FilesSortingOptions

interface FilesSortingOptions {
    sortFavoritesFirst?: boolean;
    sortFoldersFirst?: boolean;
    sortingMode?: FilesSortingMode;
    sortingOrder?: SortingOrder;
}

Properties

sortFavoritesFirst?: boolean

If set to true nodes marked as favorites are ordered on top of all other nodes

false
sortFoldersFirst?: boolean

If set to true folders are ordered on top of files

false
sortingMode?: FilesSortingMode

They key to order the files by

FilesSortingMode.Name
sortingOrder?: SortingOrder
'asc'