Describe the bug
The command list API is showing most recent commands in the last page.
I haven't verified whether other API endpoints suffer the same issue but we have to verify that all endpoints return recent data first.
Steps To Reproduce
- Create several commands for a device
- Open REST API command list
- The most recent commands are shown at the bottom
Expected behavior
The most recent commands should be shown on top.
Let's take advantage to verify that all the list API endpoints for this module show most recent data first.
Let's not forget to add at least unit test for this.
Describe the bug
The command list API is showing most recent commands in the last page.
I haven't verified whether other API endpoints suffer the same issue but we have to verify that all endpoints return recent data first.
Steps To Reproduce
Expected behavior
The most recent commands should be shown on top.
Let's take advantage to verify that all the list API endpoints for this module show most recent data first.
Let's not forget to add at least unit test for this.