mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Sort manual search results shortest to longest
This commit is contained in:
@@ -6,6 +6,10 @@ var section_names = function(q, cb) {
|
||||
matches.push(k);
|
||||
}
|
||||
});
|
||||
matches.sort(function(a, b) {
|
||||
// shortest to longest
|
||||
return a.length - b.length;
|
||||
});
|
||||
cb(matches);
|
||||
}
|
||||
var go_to_section = function(section) {
|
||||
|
Reference in New Issue
Block a user