Hi Ajeh,
Thanks for looking into this.

My developer made some changes to the module , he just told me "used one sqlscript to update sort order instead of programming loop" and it works great.
Don't know what he did as it's too technical for me.