2 ms·
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.
by latch 16y ago
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/761cd4e60682eb4fc8c941fc74d29696159a1bce https://github.com/karlseguin/Mongo-Web-Admin/commit/761cd4e...