This phenomenon occurs when you have obtained 32,767 or more items, regardless of the type of item.
*Once you have obtained 32,767 or more items, this phenomenon persists even if you Discard items to reduce the number of items.
*By starting a second playthrough after completing the game, the sort order returns to the previous state.