$ 0 0 You're only sorting the time descending. You need. SORT gint_cdhdr by objectid udate DESCENDING utime DESCENDING.