forked from akanyan/STARTLINER
fix: category sort
This commit is contained in:
@ -59,7 +59,11 @@ const group = computed(() => {
|
||||
}
|
||||
}
|
||||
res.sort((a, b) => {
|
||||
return a[0] === 'local' ? -1000000 : `${a[0]}`.localeCompare(`${b[0]}`);
|
||||
return a[0] === 'local'
|
||||
? -1000
|
||||
: b[0] === 'local'
|
||||
? 1000
|
||||
: `${a[0]}`.localeCompare(`${b[0]}`);
|
||||
});
|
||||
|
||||
return res;
|
||||
|
Reference in New Issue
Block a user