Sort them

This commit is contained in:
tidy-dev 2023-12-05 08:58:30 -05:00
parent 7974508287
commit e52d14a8af

View file

@ -452,7 +452,7 @@ export class SideBySideDiff extends React.Component<
return
}
const expansionHunkKeys = Array.from(this.hunkExpansionRefs.keys())
const expansionHunkKeys = Array.from(this.hunkExpansionRefs.keys()).sort()
const { hunkIndex, expansionType } = this.state.lastExpandedHunk
const lastExpandedKey = `${hunkIndex}-${expansionType}`