Fix "open with" list ordering (#2697)

* Add sorting to "open with" menu

* Added sorting of open with in rust

* made prettier

* reduced variables used

* format issues

* revert rust back to no sorting
This commit is contained in:
Madison Konig 2024-09-13 22:28:14 -07:00 committed by GitHub
parent c4c8fbaec5
commit 9c9fde2245

View File

@ -100,7 +100,9 @@ const Items = ({
paths.length > 0
? actions.getEphemeralFilesOpenWithApps(paths).then(handleError)
: Promise.resolve([])
]).then((res) => res.flat());
])
.then((res) => res.flat())
.then((res) => res.sort((a, b) => a.name.localeCompare(b.name)));
},
{ initialData: [] }
);