We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 041d345 commit 04930e0Copy full SHA for 04930e0
src/components/table/CDataTable.vue
@@ -353,11 +353,11 @@ export default {
353
354
//if values in column are to be sorted by numeric value they all have to be type number
355
const flip = this.sorterState.asc ? 1 : -1
356
- return this.tableFiltered.slice().sort((item , item2) => {
+ return this.tableFiltered.slice().sort((item, item2) => {
357
const value = item[col]
358
const value2 = item2[col]
359
- const a = typeof value === 'number' ? value : String(value)
360
- const b = typeof value2 === 'number' ? value2 : String(value2)
+ const a = typeof value === 'number' ? value : String(value).toLowerCase()
+ const b = typeof value2 === 'number' ? value2 : String(value2).toLowerCase()
361
return a > b ? 1 * flip : b > a ? -1 * flip : 0
362
})
363
},
0 commit comments