mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 21:33:18 +01:00
fix: removes toSorted() for older browsers that do not support it (#2895)
This commit is contained in:
@@ -91,8 +91,8 @@ const { results } = useFuse(query, list, {
|
||||
});
|
||||
|
||||
const data = computed(() => {
|
||||
return results.value
|
||||
.toSorted((a, b) => {
|
||||
return [...results.value]
|
||||
.sort((a, b) => {
|
||||
if (a.score === b.score) {
|
||||
if (a.item.state === b.item.state) {
|
||||
return b.item.created - a.item.created;
|
||||
|
||||
Reference in New Issue
Block a user