For expiration date you can choose to sort in ascending or descending order, or Ascending Current Period First. This option When moves units associated to the current period up in priority so that they are used before units from previous periods.
-
From the Selected box, either right-click on the Expiration Date sorting rule or double-click on it to view the Sort Direction window.

-
Select the Sort Direction from the drop-down list.
-
Click Save.