Skip to content

Commit 2ae2bd4

Browse files
committed
reverse
1 parent 9d07913 commit 2ae2bd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/table/table-data-source.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ export class MatTableDataSource<T> implements DataSource<T> {
124124
let comparatorResult = 0;
125125
if (valueA && valueB) {
126126
// Check if one value is greater than the other; if equal, comparatorResult should remain 0.
127-
if (valueA < valueB) {
128-
comparatorResult = -1;
129-
} else if (valueB < valueA) {
127+
if (valueA > valueB) {
128+
comparatorResult = 1;
129+
} else if (valueA < valueB) {
130130
comparatorResult = 1;
131131
}
132132
} else if (valueA) {

0 commit comments

Comments
 (0)