Skip to content

Commit

Permalink
Sorted bot list in vote calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
MattyIce committed Jan 30, 2018
1 parent a78a0d3 commit 9878062
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions scripts/bottracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ $(function () {
$.get('https://steembottracker.com/bidbots.json', function (data) {
bots = data;

bots.sort(function(a, b){
if(a.name < b.name) return -1;
if(a.name > b.name) return 1;
return 0;
});

bots.forEach(function (bot) {
bot_names.push(bot.name);
$('#bot_list').append('<option value="' + bot.name + '">' + bot.name + '</option>');
Expand Down
Loading

0 comments on commit 9878062

Please sign in to comment.