I\'m using SQLite in an Android application. In all of my tables I have a default row with an index of 0 that holds default values for that table. In most situations
Equivalent to the CASE statement suggestion, but shorter:
CASE
ORDER BY epoch_date.epoch == 0, epoch_date.epoch