'PostgreSQL timescale - How to sort rows by time and id?
Solution 1:[1]
Looking at output you are showing, I am seeing output is sorted by descending order of time.
If you want to order your output by descending order of both id & time then you can try below:
select * from timescale order by id , time desc;
Hopefully this is what you are looking for.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ashish Patil |

