Sort lessons by time.