Skip to content

Commit

Permalink
Fix inconsistent sorting of search results
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikerabbit authored and kellegous committed Jul 15, 2018
1 parent 852dad3 commit 988bf82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/assets/js/hound.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ var Model = {
}

results.sort(function(a, b) {
return b.Matches.length - a.Matches.length;
return b.Matches.length - a.Matches.length || a.Repo.localeCompare(b.Repo);
});

var byRepo = {};
Expand Down

0 comments on commit 988bf82

Please sign in to comment.