From: Moritz Warning Date: Wed, 29 Jan 2020 14:55:41 +0000 (+0100) Subject: sort results X-Git-Tag: v1.0.0~50 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=45ffb7cc761fc3eb7ff1675a5c0a29f40c3b5e2a;p=web%2Ffirmware-selector-openwrt-org.git sort results --- diff --git a/www/index.js b/www/index.js index c033eba..b17fa32 100644 --- a/www/index.js +++ b/www/index.js @@ -46,8 +46,9 @@ function setupAutocompleteList(input, items, onselection) { // the text field element and an array of possible autocompleted values: var currentFocus = -1; - // execute a function when someone writes in the text field: + items.sort(); + // execute a function when someone writes in the text field: input.oninput = function(e) { console.log("input"); // clear images