I keep my inventory nice and tidy with the sort button. Don't get why people refuse such a nice and simple tool and do things the hard way. There is even settings for how your items are sorted to help people get their inventories just the way they like. Maybe instead of doing undo sort they add more ways to customize the auto-sort so more people would use it and your scenario doesn't happen anymore.