First of all thanks to all the masters who have been doing such wonderful work. I am a amateur trying my hand at it.
I am trying to sort the Sheets by a parameter. When I run the script it gives a different set of values every time for the Sheet numbers (missing numbers vary) while all the Sheet names are correctly listed. Could you help where am I going wrong.