Sort classes by time only.