Glad you like it and it's useful! And possibly, I'll try to look into it. The reason it sorts when it's opened is there's an event when a gui is opened that you can easily leverage, and I just sorted whenever a gui opened (it was a very simple way to do it).
If possible, I'll try to sort on changes to the inventory as it'd certainly be nice.