From 45ffb7cc761fc3eb7ff1675a5c0a29f40c3b5e2a Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Wed, 29 Jan 2020 15:55:41 +0100 Subject: [PATCH] sort results --- www/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2