Skip to content

Commit

Permalink
Merge pull request Ericsson#4445 from cservakt/statistics-sorting
Browse files Browse the repository at this point in the history
[Fix] Sorting of the statistics
  • Loading branch information
dkrupp authored Jan 30, 2025
2 parents 92f1af6 + 7e670a1 commit c20461c
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,16 @@ export default {
a.checkers, prop, sortDesc[index]);
bValue = this.getNestedTableContent(
b.checkers, prop, sortDesc[index]);
}
}
else if (column.includes(".")) {
const sub_columns = column.split(".");
aValue = sub_columns.reduce((element, sub_coulmn) => (
element && element[sub_coulmn] !== undefined
? element[sub_coulmn] : undefined), a);
bValue = sub_columns.reduce((element, sub_coulmn) => (
element && element[sub_coulmn] !== undefined
? element[sub_coulmn] : undefined), b);
}
else {
aValue = a[column];
bValue = b[column];
Expand Down

0 comments on commit c20461c

Please sign in to comment.