fix(Table): enable sorting for nested column keys (#835)

This commit is contained in:
mwohlan
2023-10-19 11:23:32 +02:00
committed by GitHub
parent 0c36996adb
commit b4f7b035f7

View File

@@ -170,8 +170,8 @@ export default defineComponent({
const { column, direction } = sort.value
return props.rows.slice().sort((a, b) => {
const aValue = a[column]
const bValue = b[column]
const aValue = get(a, column)
const bValue = get(b, column)
if (aValue === bValue) {
return 0