mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-24 08:22:10 -04:00
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:
@@ -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: [] }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user