fixed minor time sorting bug