For example, if I have a collection with a field named "type" I want to be able to click on "type" at the top of the flat table display and have the documents be sorted, just like if I put in a sort query of {"type": 1}. Clicking again should cause it to sort in reverse order {"type": -1}
For example, if I have a collection with a field named "type" I want to be able to click on "type" at the top of the flat table display and have the documents be sorted, just like if I put in a sort query of {"type": 1}. Clicking again should cause it to sort in reverse order {"type": -1}