aboutsummaryrefslogtreecommitdiff
path: root/app/js/services.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/js/services.js')
-rw-r--r--app/js/services.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/js/services.js b/app/js/services.js
index 622717a..b661da7 100644
--- a/app/js/services.js
+++ b/app/js/services.js
@@ -42,7 +42,7 @@ app.service('pathService', function() {
selection.push(removed[0]);
duration -= 10;
}
- selection.sort(function(item){ return item.closestIndex;});
+ selection.sort(function(a,b){ return a.closestIndex-b.closestIndex;});
return selection;
}
};