Skip to content

Commit

Permalink
feat: Filter posting rights on user name
Browse files Browse the repository at this point in the history
Refs: #RW-1058
  • Loading branch information
attiks committed Dec 12, 2024
1 parent b52a7fc commit 1060bf9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@
option.setAttribute('selected', '');
select.appendChild(option);

// List content in reverse order (most recently added first).
for (var i = data.length - 1; i >= 0; i--) {
// List alphabetically.
data = data.sort((a, b) => a.name.localeCompare(b.name));
for (var i = 0; i < data.length; i++) {
var option = document.createElement('option');
option.appendChild(document.createTextNode(data[i].name));
option.setAttribute('value', data[i].name);
Expand Down

0 comments on commit 1060bf9

Please sign in to comment.