We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36ffa4e commit 5b3b7b8Copy full SHA for 5b3b7b8
1 file changed
previewers/betatest/js/refiqdacore.js
@@ -127,8 +127,15 @@ function parseData2(data) {
127
//Users only has a "Name" column
128
let userTable = createTable("Users", "Name").appendTo(userBlock);
129
userTable.addClass("usertable compact stripe");
130
+
131
+ // Convert HTMLCollection to array and sort by name
132
+ let usersArray = Array.from(users).sort((a, b) => {
133
+ let nameA = a.getAttribute("name");
134
+ let nameB = b.getAttribute("name");
135
+ return nameA.localeCompare(nameB);
136
+ });
137
//Create rows
- for (let user of users) {
138
+ for (let user of usersArray) {
139
console.log("adding user row");
140
let tr = addRow(userTable, user.getAttribute("name"));
141
tr.attr('data-guid', user.getAttribute("guid"));
0 commit comments