From 7ccd907f7124104231ed4d93976e4a7e44366d1f Mon Sep 17 00:00:00 2001 From: Nathan Kendall Date: Mon, 26 Jul 2021 10:23:09 +0100 Subject: [PATCH] changed the auto sort function to make the function es5 compliant as the rest of the project is already --- src/litegraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/litegraph.js b/src/litegraph.js index bfacaec94..e6d79b775 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -418,7 +418,7 @@ } if (this.auto_sort_node_types) { - r.sort((a, b) => a.title.localeCompare(b.title)); + r.sort(function(a,b){return a.title.localeCompare(b.title)}); } return r;