Skip to content

Commit

Permalink
Use numeric sorting for exported fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Oct 29, 2023
1 parent a2a60dc commit 3b5cbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hub/exportWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ self.onmessage = (event) => {
let fields: string[] = [];
let processTree = (data: { [id: string]: LogFieldTree }) => {
Object.keys(data)
.sort()
.sort((a, b) => a.localeCompare(b, undefined, { numeric: true }))
.forEach((key) => {
if (data[key].fullKey !== null) {
fields.push(data[key].fullKey as string);
Expand Down

0 comments on commit 3b5cbba

Please sign in to comment.