mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-26 18:23:47 +02:00
Sort user avatars by uploaded date
This commit is contained in:
@@ -6,6 +6,7 @@ import Noty from 'noty';
|
||||
|
||||
import {
|
||||
arraysMatch,
|
||||
compareByCreatedAt,
|
||||
compareByDisplayName,
|
||||
compareByLocationAt,
|
||||
compareByName,
|
||||
@@ -1162,6 +1163,8 @@ export const useUserStore = defineStore('User', () => {
|
||||
const D = userDialog.value;
|
||||
if (D.avatarSorting === 'update') {
|
||||
array.sort(compareByUpdatedAt);
|
||||
} else if (D.avatarSorting === 'createdAt') {
|
||||
array.sort(compareByCreatedAt);
|
||||
} else {
|
||||
array.sort(compareByName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user