Skip to content

Commit 5bce833

Browse files
skjnldsvrullzer
authored andcommitted
Sort users and groups first in sharing input
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent dfe85ae commit 5bce833

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/files_sharing/src/components/SharingInput.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,12 @@ export default {
207207
// remove invalid data and format to user-select layout
208208
const exactSuggestions = this.filterOutExistingShares(rawExactSuggestions)
209209
.map(share => this.formatForMultiselect(share))
210+
// sort by type so we can get user&groups first...
211+
.sort((a, b) => a.shareType - b.shareType)
210212
const suggestions = this.filterOutExistingShares(rawSuggestions)
211213
.map(share => this.formatForMultiselect(share))
214+
// sort by type so we can get user&groups first...
215+
.sort((a, b) => a.shareType - b.shareType)
212216
213217
// lookup clickable entry
214218
const lookupEntry = []

0 commit comments

Comments
 (0)