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 3d6c378 commit a5a2c93Copy full SHA for a5a2c93
packages/pinia-orm/src/support/Utils.ts
@@ -83,6 +83,7 @@ export function orderBy<T extends Element> (
83
const result = collection.map<SortableArray<T>>((value) => {
84
const criteria = iteratees.map((iteratee) => {
85
if (typeof iteratee === 'function') { return iteratee(value) }
86
+ if (!iteratee.includes('.') && !isDate(value[iteratee])) { return value[iteratee] }
87
const newValue = getValue(value, iteratee, false)
88
return isDate(newValue) ? new Date(newValue).getTime() : newValue
89
})
0 commit comments