git ssb

16+

Dominic / patchbay



Commit eb7c7ddd2c8ba50f7e00003d9058d3b2d1e3779b

sort ids by most mentions

Dominic Tarr committed on 6/30/2016, 9:51:49 PM
Parent: ba2f9b6ae92ee437a269b2500d96bf22636b058f

Files changed

modules/search-box.jschanged
modules/search-box.jsView
@@ -84,10 +84,13 @@
8484 suggestions['@'] = links.map(function (e) {
8585 return {
8686 title: e.name,
8787 value: e.id,
88- subtitle: e.id + ' (' + e.rank + ')'
88+ subtitle: e.id + ' (' + e.rank + ')',
89+ rank: e.rank
8990 }
91+ }).sort(function (a, b) {
92+ return b.rank - a.rank
9093 })
9194 })
9295 )
9396

Built with git-ssb-web