Sorted units by code

This commit is contained in:
dankito 2024-12-13 05:51:11 +01:00
parent 6c369f6954
commit 31b021bae7
2 changed files with 763 additions and 763 deletions

View File

@ -179,7 +179,7 @@ class CodeGenerator {
Row(listOf(code, values[1], i18nUnit?.symbol, row.isFrequentlyUsedValue), row.isFrequentlyUsedValue)
}
return columns to rows
return columns to rows.sortedBy { it.values[0].toString() } // sort by code
}
private fun addFrequentlyUsedColumn(columnsToRows: Pair<List<Column>, List<Row>>): Pair<List<Column>, List<Row>> {