From 64b7a94a9fb1d76dce41e38148d1f465668601cb Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Sat, 26 Sep 2015 16:38:51 +0100 Subject: Arrays dont have charAt... --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index 8b10d78..1f366cd 100644 --- a/js/main.js +++ b/js/main.js @@ -41,7 +41,7 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval) data: value }); $scope.steps.sort(function(a, b) { - return a.charAt(0) > b.charAt(0); + return a.name.charAt(0) > b.name.charAt(0); }); }); }); -- cgit v1.2.1