mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
fix sort
This commit is contained in:
@@ -151,20 +151,21 @@ const queue = computed(() => {
|
||||
.OrderByDescending((q) => q.from == QueueFrom.Manual)
|
||||
switch (settings.value.sortType) {
|
||||
case QueueSortType.TimeFirst: {
|
||||
list = list.OrderByDescending((q) => q.createAt)
|
||||
list = list.ThenBy((q) => q.createAt)
|
||||
break
|
||||
}
|
||||
case QueueSortType.GuardFirst: {
|
||||
list = list.OrderBy((q) => q.user?.guard_level).ThenByDescending((q) => q.createAt)
|
||||
list = list.OrderBy((q) => q.user?.guard_level).ThenBy((q) => q.createAt)
|
||||
break
|
||||
}
|
||||
case QueueSortType.PaymentFist: {
|
||||
list = list.OrderByDescending((q) => q.giftPrice ?? 0).ThenByDescending((q) => q.createAt)
|
||||
list = list.OrderByDescending((q) => q.giftPrice ?? 0).ThenBy((q) => q.createAt)
|
||||
}
|
||||
}
|
||||
if (configCanEdit.value ? settings.value.isReverse : isReverse.value) {
|
||||
list = list.Reverse()
|
||||
}
|
||||
list = list.OrderByDescending((q) => q.status == QueueStatus.Progressing ? 1 : 0)
|
||||
return list.ToArray()
|
||||
})
|
||||
const historySongs = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user