given the order by multiple field.. how does it wo...
# orm-help
v
given the order by multiple field.. how does it work with an object given JS objects have no order? 🤔 re: talking about this snippet
Copy code
// order by `age` descending and then by `name` ascending
const users = await prisma.user.findMany({
  orderBy: {
    age: 'desc',
    name: 'asc'
  }
})
👍 2
🤔 1
r
non-object scalars only?
r
Wouldn’t
Object.keys()
return a deterministic result?
t
You’re right @veksen! That’s why we just patched it 🙂 https://github.com/prisma/prisma/releases/tag/2.4.1
prisma green 1
v
well done :D