diff --git a/app/src/routes/(backstage)/(library)/data-display/table/dynamic-table/+page.vue b/app/src/routes/(backstage)/(library)/data-display/table/dynamic-table/+page.vue
index 5c293218..ac85977c 100644
--- a/app/src/routes/(backstage)/(library)/data-display/table/dynamic-table/+page.vue
+++ b/app/src/routes/(backstage)/(library)/data-display/table/dynamic-table/+page.vue
@@ -343,11 +343,11 @@ const flux = reactive({
-
- Sum: |
- 108 |
- |
-
+
+ Sum:
+ 108
+
+
diff --git a/ui/src/components/table/Table.vue b/ui/src/components/table/Table.vue
index 65a60dd8..4bec93d7 100644
--- a/ui/src/components/table/Table.vue
+++ b/ui/src/components/table/Table.vue
@@ -305,15 +305,15 @@ watchEffect(
-
+
diff --git a/ui/src/utilities/static-table/staticTable.ts b/ui/src/utilities/static-table/staticTable.ts
index dff61334..a242320a 100644
--- a/ui/src/utilities/static-table/staticTable.ts
+++ b/ui/src/utilities/static-table/staticTable.ts
@@ -1,5 +1,5 @@
import chunk from 'lodash/chunk';
-import sortBy from 'lodash/sortBy';
+import orderBy from 'lodash/orderBy';
export default >(
rows: T[],
@@ -10,11 +10,11 @@ export default >(
let arr = [...rows];
if (control.field && control.direction === 'asc') {
- arr = sortBy(arr, (item) => item[control.field]);
+ arr = orderBy(arr, control.field, 'asc');
}
if (control.field && control.direction === 'desc') {
- arr = sortBy(arr, (item) => item[control.field]).reverse();
+ arr = orderBy(arr, control.field, 'desc');
}
const chunked = chunk(arr, control.rows);