1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00

Fix alphabetical sorting for tables

This commit is contained in:
Andrew Kingston 2023-05-12 08:02:21 +01:00
parent 2f96b797a0
commit f5a4ad58ab

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