Skip to content

Commit

Permalink
Update data.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rualark authored Sep 21, 2024
1 parent fa3a16c commit 681ed02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function updateGroups(groups, answers, permutation) {
export function sortAnswers(groups) {
return groups.map(group => {
// Extract first elements from each pair
let firstElements = group.map(pair => pair[0]);
const firstElements = group.map(pair => pair[0]);

// Sort the first elements in ascending order
firstElements.sort();
Expand Down

0 comments on commit 681ed02

Please sign in to comment.