From 97ee7d43b8d442f2619465e9b71d3e8fc9785ea4 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 28 May 2024 11:25:02 +0200 Subject: [PATCH] Fixed typo for order functionality --- public/plugins/vue/tt-components/tt-table.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/plugins/vue/tt-components/tt-table.js b/public/plugins/vue/tt-components/tt-table.js index f2acab587..4c48bb99e 100644 --- a/public/plugins/vue/tt-components/tt-table.js +++ b/public/plugins/vue/tt-components/tt-table.js @@ -707,11 +707,9 @@ Vue.component('tt-table', { const isDateColumn = this.columns[this.order.key].filter === 'date'; output.sort((a, b) => { - - let valueA = isDateColumn ? new Date(a[this.order.key].length === 10 ? parseInt(a[this.order.key]) * 1000 : parseInt(a[this.order.key])).getTime() : - b[this.order.key] || '' + a[this.order.key] || '' let valueB = isDateColumn ? new Date(b[this.order.key].length === 10 ? parseInt(b[this.order.key]) * 1000 : parseInt(b[this.order.key])).getTime() : b[this.order.key] || ''