Skip to content

Commit

Permalink
sort the autocomplete suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ColaColin committed Mar 23, 2015
1 parent c8e14c8 commit 5b36a0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/static/js/gamesfilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
result.push(p);
}
}
return result;
return result.sort();
});
self.playerFilter = ko.observable();
self.playerId = ko.computed(function() {
Expand Down Expand Up @@ -51,7 +51,7 @@

self.initAutoCompleteSystems = function() {
$.getJSON("/report/withcache/systems", function(set) {
self.systems(set);
self.systems(set.sort());
$('#systemFilter').autocomplete({
minLength: 2,
source: self.systems(),
Expand Down

0 comments on commit 5b36a0e

Please sign in to comment.