1. Knowledge Base
  2. MongoDB Tutorials
  3. Collections
  4. How to Sort Your MongoDB Collection

How to Sort Your MongoDB Collection

While in Table View, you can now tap on any column header to easily sort your current collection view.

Tap on a column header once to sort your view based on the data in that column in ascending order.

If you click on the header again, the view will be sorted in descending order. Another tap will restore the original (unsorted) order.

Piece of cake 🙂


Updated on May 24, 2019

Was this article helpful?

Related Articles