From 9e01bb7607c7daadeb877021db2ee56546c26433 Mon Sep 17 00:00:00 2001 From: Andrew Seguin Date: Fri, 29 Sep 2017 15:55:16 -0700 Subject: [PATCH] fix(sort): fix incorrect conditional grouping --- src/lib/sort/sort-header.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/sort/sort-header.ts b/src/lib/sort/sort-header.ts index 87f497d40c23..eda8f464a566 100644 --- a/src/lib/sort/sort-header.ts +++ b/src/lib/sort/sort-header.ts @@ -146,6 +146,6 @@ export class MatSortHeader implements MatSortable { /** Whether this MatSortHeader is currently sorted in either ascending or descending order. */ _isSorted() { return this._sort.active == this.id && - this._sort.direction === 'asc' || this._sort.direction === 'desc'; + (this._sort.direction === 'asc' || this._sort.direction === 'desc'); } }