Skip to content

Commit

Permalink
Fix "open with" list ordering (#2697)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
MadisonKonig committed Sep 14, 2024
1 parent a385835 commit 1db7aff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interface/app/$libraryId/Explorer/ContextMenu/OpenWith.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] }
);
Expand Down

0 comments on commit 1db7aff

Please sign in to comment.