svelte-common 6.3.0 → 6.3.1
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/package.json +1 -1
- package/src/pagination.mjs +1 -0
- package/src/sorting.mjs +5 -4
package/package.json
CHANGED
package/src/pagination.mjs
CHANGED
package/src/sorting.mjs
CHANGED
|
@@ -110,11 +110,12 @@ export function sorter(sortBy, getters) {
|
|
|
110
110
|
if (bv === undefined) {
|
|
111
111
|
return rev;
|
|
112
112
|
}
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
|
|
114
|
+
if(av[Symbol.toPrimitive]) {
|
|
115
|
+
av = av[Symbol.toPrimitive]('number');
|
|
115
116
|
}
|
|
116
|
-
if
|
|
117
|
-
bv = bv.
|
|
117
|
+
if(bv[Symbol.toPrimitive]) {
|
|
118
|
+
bv = bv[Symbol.toPrimitive]('number');
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
return av > bv ? rev : av == bv ? 0 : -rev;
|