Added sort for checkins