Sorting expiration date is working properly