@@ -146,7 +146,7 @@ import { ConnectedPositioningStrategy } from '../services/overlay/position/conne
146
146
import { ContainerPositionStrategy } from '../services/overlay/position/container-position-strategy' ;
147
147
import { AbsoluteScrollStrategy } from '../services/overlay/scroll/absolute-scroll-strategy' ;
148
148
import { Action , StateUpdateEvent , TransactionEventOrigin } from '../services/transaction/transaction' ;
149
- import { ISortingExpression , SortingDirection } from '../data-operations/sorting-strategy' ;
149
+ import { ISortingExpression } from '../data-operations/sorting-strategy' ;
150
150
import { IGridSortingStrategy } from './common/strategy' ;
151
151
import { IgxGridExcelStyleFilteringComponent } from './filtering/excel-style/grid.excel-style-filtering.component' ;
152
152
import { IgxGridHeaderComponent } from './headers/grid-header.component' ;
@@ -4528,15 +4528,10 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
4528
4528
4529
4529
if ( expression instanceof Array ) {
4530
4530
for ( const each of expression ) {
4531
- if ( each . dir === SortingDirection . None ) {
4532
- this . gridAPI . remove_grouping_expression ( each . fieldName ) ;
4533
- }
4534
4531
this . gridAPI . prepare_sorting_expression ( [ sortingState ] , each ) ;
4535
4532
}
4536
4533
} else {
4537
- if ( expression . dir === SortingDirection . None ) {
4538
- this . gridAPI . remove_grouping_expression ( expression . fieldName ) ;
4539
- } else if ( this . _sortingOptions . mode === 'single' ) {
4534
+ if ( this . _sortingOptions . mode === 'single' ) {
4540
4535
this . columns . forEach ( ( col ) => {
4541
4536
if ( ! ( col . field === expression . fieldName ) ) {
4542
4537
this . clearSort ( col . field ) ;
0 commit comments