Reverse sort order by default
I was a big RockMongo user and am now trying to switch over to Compass. I found it extremely convenient that in RockMongo, the default sort order was {_id: -1} because that means that you see the most recent records first. I didn't realize how useful this was until I discovered that Compass sorts in forward order. Either a "reverse order" button or simply a change to the default would be highly desireable.
-
Daniel Nitu commented
This looks like a quick win that would improve UX a lot! To start with it can only be a simepl default sort {_id: -1} which we can toggle on/off in the settings.
100% of the time I need to look at documents, I want them sorted by the last one added first.
-
Michael Kubler commented
Given there's an [Edit] -> [Settings] section, you could allow the default sort order to be adjustable, with `{ _id: -1 }` being the default.
But that would allow people to remove it or set it to something else, like {createdAt: -1} or {name: 1}
Or even a sort order default lookup cascade, a global default you can change in the settings but a per collection overwrite. That way for a collection that doesn't have a "name" field you could use _id or whatever else and save that as the default for the collection.
This is more important now that the "Options v" button is so all the way to the right and harder to access.
Having to set the Sort all the time is a lot of effort and something I have to do multiple times a day.
-
Boštjan Pišler commented
+1
-
Michael Kubler commented
I was just going to suggest this!
I really want to see it remember the previously used sort, or specify a default.Having `{_id: -1}` be the default would be perfect.
-
Vijay commented
Please provide default ordering settings { _id : -1 }
-
Ricardo Julian commented
Being able to specify a default ordering would improve the experience x100.
A good idea would be to be able to specify the default value the field "sort" has when a new tab is open.
The setting could be set in the "settings" of compass -
Thibaut Rousseau commented
Yes please.
When you test a feature and check the DB, you almost always want to see the last inserted entries first. -
Nicolas commented
Yes please implement default order { _id : -1 } !!