changed the auto sort function to make the function es5 compliant as the rest of the project is already
changed the auto sort function to make the function es5 compliant as the rest of the project is already

jagenjo/litegraph.js,jagenjo/litegraph.js,jagenjo/litegraph.js,jagenjo/litegraph.js,jagenjo/litegraph.js