maritz / nohm

node.js object relations mapper (orm) for redis
http://maritz.github.io/nohm/
MIT License
500 stars 64 forks source link

Can I sort when I find? #156

Closed leekeal closed 4 years ago

leekeal commented 4 years ago

Can I sort when I find?

maritz commented 4 years ago

Nohm does not provide a function to do both in one operation.

The easy way is to find first and then sort the resulting IDs.

Otherwise you can of course do more complex queries in redis yourself or write a lua script to do it in redis for maximum performance.