@axium/storage 0.24.3 → 0.24.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/List.svelte +1 -1
- package/package.json +1 -1
package/lib/List.svelte
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
const [a, b] = sort.descending ? [_b, _a] : [_a, _b];
|
|
52
52
|
// @ts-expect-error 2362 — `Date`s have a `valueOf` and can be treated like numbers
|
|
53
|
-
return sort.by == 'name' ? a.name.localeCompare(b.name) : a[sort.by] - b[sort.by];
|
|
53
|
+
return sort.by == 'name' ? a.name.localeCompare(b.name) : Number(a[sort.by] - b[sort.by]);
|
|
54
54
|
})
|
|
55
55
|
);
|
|
56
56
|
|