custom sort for hour types