When you sort by a method, and then change things in your inventory and want to return it to that sorting, you can't just click the same button again. Instead you have to re-sort by some other order and then click the original one that you actually wanted. It should just sort again when you press the one that's already being used.