Skip to content

Commit

Permalink
fix(Table): enable sorting for nested column keys (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwohlan authored Oct 19, 2023
1 parent 0c36996 commit b4f7b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/data/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit b4f7b03

@vercel
Copy link

@vercel vercel bot commented on b4f7b03 Oct 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxt-js.vercel.app
ui-nuxt-js.vercel.app
ui.nuxt.com

Please sign in to comment.