Fix sorting for single user schedule and all user schedule