From b4f7b035f7e802427e57fc7359020648a23eb71e Mon Sep 17 00:00:00 2001 From: mwohlan <76627776+mwohlan@users.noreply.github.com> Date: Thu, 19 Oct 2023 11:23:32 +0200 Subject: [PATCH] fix(Table): enable sorting for nested column keys (#835) --- src/runtime/components/data/Table.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/components/data/Table.vue b/src/runtime/components/data/Table.vue index 85c06b6c6a..f9bfeb67c9 100644 --- a/src/runtime/components/data/Table.vue +++ b/src/runtime/components/data/Table.vue @@ -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