Transformed ChangeModPriority to ChangeInitOrder

Function now works for initialization order. Also added comments.