From 309ec50691501a96a6bf50c99b8ca5fe09a5b583 Mon Sep 17 00:00:00 2001 From: Kate von Roeder Date: Wed, 20 Nov 2013 09:15:25 -0800 Subject: [PATCH] Array.sortBy should also use the new stablesort. --- couchpotato/static/scripts/couchpotato.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/static/scripts/couchpotato.js b/couchpotato/static/scripts/couchpotato.js index 59fac34b..d8d2655d 100644 --- a/couchpotato/static/scripts/couchpotato.js +++ b/couchpotato/static/scripts/couchpotato.js @@ -503,7 +503,7 @@ function randomString(length, extra) { case "string": saveKeyPath(argument.match(/[+-]|[^.]+/g)); break; } }); - return this.sort(comparer); + return this.stableSort(comparer); } });