Changed the default sorting on the inventory table and the appointment table