Fix alphabetical sorting for tables

This commit is contained in:
Andrew Kingston 2023-05-12 08:02:21 +01:00
parent 2f96b797a0
commit f5a4ad58ab
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@
import NavItem from "components/common/NavItem.svelte"
import { goto, isActive } from "@roxi/routify"
const alphabetical = (a, b) => a.name?.toLowerCase() > b.name?.toLowerCase()
const alphabetical = (a, b) =>
a.name?.toLowerCase() > b.name?.toLowerCase() ? 1 : -1
export let sourceId