Skip to content

Commit

Permalink
Merge pull request #14 from magicsword-io/frontend/sort-dropdown
Browse files Browse the repository at this point in the history
sort backend list alphabetically
  • Loading branch information
M3NIX authored Oct 23, 2023
2 parents d30feca + 895e5e6 commit a24534e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a24534e

Please sign in to comment.