fix datasets sort (has been changed by sample.modTime), we need to have 2 distinct sorts
sample.modTime