The sequence of line items displayed for an order is based on the most intuitive user experience. Here is how we sequence the lines and why.
Mini Cart and Cart view (also the Mini Basket and Basket) – LIFO
Items added to a cart or basket are displayed with the last item first (LIFO – Last In First Out) method. This is to make it easy to find and edit the items a user has just added to their cart or basket.
Checkout, Order History, and Admin Views – FIFO
Once an order is being placed using the Checkout all items are shown in the order they were added to the cart (FIFO – First In First Out). This will result in the order lines displaying in the order they were added by the user. This affects the Checkout, Order History, Staff Admin, and the API.