added sort order to checkout and checkin