Порядок SQL по временной метке
SELECT timestamp
FROM randomTable
ORDER BY timestamp ASC;
Comfortable Crocodile
SELECT timestamp
FROM randomTable
ORDER BY timestamp ASC;