Updated how items are sorted