From 895e5e66aa1b1589ee3e4013b3b2639f5fe697de Mon Sep 17 00:00:00 2001 From: JUORTEL Date: Mon, 23 Oct 2023 16:24:01 +0200 Subject: [PATCH] sort backend list alphabetical --- static/js/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/index.js b/static/js/index.js index 2c9c827..cef73db 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -2,7 +2,11 @@ new TomSelect("#select-backend", { controlInput: null, valueField: "value", - labelField: "label" + labelField: "label", + sortField: { + field: "value", + direction: "asc" + } }); new TomSelect("#select-format", { controlInput: null,