Skip to content

Commit 988bf82

Browse files
Nikerabbitkellegous
authored andcommitted
Fix inconsistent sorting of search results
Fixes hound-search#281
1 parent 852dad3 commit 988bf82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/assets/js/hound.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ var Model = {
208208
}
209209

210210
results.sort(function(a, b) {
211-
return b.Matches.length - a.Matches.length;
211+
return b.Matches.length - a.Matches.length || a.Repo.localeCompare(b.Repo);
212212
});
213213

214214
var byRepo = {};

0 commit comments

Comments
 (0)