After opening the shop or just the inventory seems like the "sorting" click on the name, type, weight, or price works only once.
And after buying/selling the items got reshuffled, that's not very friendly

For ex. i click on type it goes "typical longword", "mega longsword", "epic longsword", "ubermega longsword". If I sell the "epic longsword", the inv reshuffles and now it's like "ubermega longsword", "typical longword", "mega longsword", i think you got it. If I want to sell quickly (click-enter) i accidentally the one I want to keep.