FIX: Fixed incorrect item sorting.