Skip to content

Commit

Permalink
fix: sort by displayName prop
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Mar 25, 2024
1 parent 1cf9c30 commit 2a80db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/validate-sgid-index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ for (const row of rows) {
}

if (errors.length > 0) {
errors.sort();
errors.sort((a, b) => a.displayName.localeCompare(b.displayName));
console.error(jsonToMarkdown(errors, ['displayName', 'id', 'Error']));
console.log(`\ntotal errors: ${errors.length}`);
console.log(`updated ${updatedRowsCount} rows`);
Expand Down

0 comments on commit 2a80db9

Please sign in to comment.