Skip to content

Commit

Permalink
Merge pull request #146 from j-buczak/fix_file_sorter
Browse files Browse the repository at this point in the history
Fix broken file sorting
  • Loading branch information
norwoodj authored Jun 29, 2022
2 parents 60d8310 + c64450c commit bad11a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/document/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func sortValueRows(valueRows []valueRow) {
if valueRows[i].LineNumber == valueRows[j].LineNumber {
return valueRows[i].Column < valueRows[j].Column
}
return valueRows[i].LineNumber < valueRows[i].LineNumber
return valueRows[i].LineNumber < valueRows[j].LineNumber
case AlphaNumSortOrder:
return valueRows[i].Key < valueRows[j].Key
default:
Expand Down

0 comments on commit bad11a7

Please sign in to comment.