We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cc80ca commit 3171d6fCopy full SHA for 3171d6f
packages/vuetify/src/util/helpers.ts
@@ -339,6 +339,11 @@ export function sortItems<T extends any = any> (
339
continue
340
}
341
342
+ // Dates should be compared numerically
343
+ if (sortA instanceof Date && sortB instanceof Date) {
344
+ return sortA.getTime() - sortB.getTime()
345
+ }
346
+
347
[sortA, sortB] = [sortA, sortB].map(s => (s || '').toString().toLocaleLowerCase())
348
349
if (sortA !== sortB) {
0 commit comments