@terraware/web-components 3.1.0 → 3.1.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/components/table/sort.js +1 -1
- package/package.json +1 -1
package/components/table/sort.js
CHANGED
@@ -11,7 +11,7 @@ function descendingComparator(a, b, orderBy, order) {
|
|
11
11
|
// first attempt to parse into a numeric value and compare
|
12
12
|
const numCompare = descendingNumComparator(a, b, orderBy);
|
13
13
|
if (numCompare !== null) {
|
14
|
-
return numCompare;
|
14
|
+
return order === 'desc' ? numCompare : numCompare * -1;
|
15
15
|
}
|
16
16
|
|
17
17
|
// if non-numeric, compare using the javascript built-in compare for this type
|