Updating order to go by date instead of ID