Skip to content

Commit 6291793

Browse files
committed
feat: QTable - Sorting on boolean column fails quasarframework#1689
1 parent ac2c1c8 commit 6291793

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/table/table-sort.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ export default {
3737
if (isDate(A) && isDate(B)) {
3838
return sortDate(A, B) * dir
3939
}
40+
if (typeof A === 'boolean' && typeof B === 'boolean') {
41+
return (a - b) * dir
42+
}
4043

4144
[A, B] = [A, B].map(s => s.toLowerCase())
4245

0 commit comments

Comments
 (0)