diff --git a/static/setup.js b/static/setup.js index 0a6be1b..b64b64d 100644 --- a/static/setup.js +++ b/static/setup.js @@ -53,6 +53,9 @@ window.onload = function() { }; function renderAvailableCards() { + cards.sort(function(a, b) { + return a.role.toUpperCase().localeCompare(b.role); + }); document.getElementById("card-select").innerHTML = ""; document.getElementById("roles").innerHTML = ""; for (let i = 0; i < cards.length; i ++) { diff --git a/views/index.html b/views/index.html index 1aa2d2a..348d391 100644 --- a/views/index.html +++ b/views/index.html @@ -28,7 +28,9 @@