Added ordering by time to checkin model.