ensure index on timestamps (for sorting)