Hacker News new | past | comments | ask | show | jobs | submit login

weight:-1 is correct..since you want the heaviest, you sort by weight descending. weight:1 should have returned documents in ascending order but wasn't working. It's fixed now on the tutorial..as well as in the core web console: https://github.com/karlseguin/Mongo-Web-Admin/commit/761cd4e...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: