Skip to content

Commit f8e17b8

Browse files
committed
fix: sort
1 parent dd82bc5 commit f8e17b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-screener",
3-
"version": "0.15.20",
3+
"version": "0.15.21",
44
"type": "module",
55
"description": "Easily search and filter data in Vue3.",
66
"author": "Francis Ashley",

src/utils/data.utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const sortRows = (
9494
const sortField = options.sortField
9595
const sortDirection = options.invertSort ? (options.sortDirection === 'asc' ? 'desc' : 'asc') : options.sortDirection
9696
if (sortField && sortDirection) {
97-
return [...orderBy(data, [(row: Row) => row.cells[sortField]], [sortDirection])]
97+
return [...orderBy(data, [(row: Row) => row.cells[sortField].value], [sortDirection])]
9898
}
9999
return data
100100
}

0 commit comments

Comments
 (0)