Update sort

This commit is contained in:
Valtteri Karesto
2022-06-03 16:50:31 +03:00
parent 02c59f8d79
commit 0ee599a2b6

View File

@@ -69,6 +69,9 @@ export const fetchFiles = (gistId: string) => {
if (aCext && !bCext) {
return -1;
}
if (!aCext && bCext) {
return 1
}
// Otherwise fallback to default sorting based on basename
if (aBasename > bBasename) {
return 1;