File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
projects/igniteui-angular/src/lib/grids/common Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -109,12 +109,17 @@ export class IgxSorting implements IGridSortingStrategy {
109
109
const res = [ ] ;
110
110
const key = expression . fieldName ;
111
111
const len = data . length ;
112
- const groupval = this . getFieldValue ( data [ index ] , key , isDate ) ;
112
+ let groupval = this . getFieldValue ( data [ index ] , key , isDate ) ;
113
113
res . push ( data [ index ] ) ;
114
114
index ++ ;
115
115
const comparer = expression . groupingComparer || DefaultSortingStrategy . instance ( ) . compareValues ;
116
116
for ( let i = index ; i < len ; i ++ ) {
117
- if ( comparer ( this . getFieldValue ( data [ i ] , key , isDate ) , groupval ) === 0 ) {
117
+ let fieldValue = this . getFieldValue ( data [ i ] , key , isDate ) ;
118
+ if ( expression . ignoreCase ) {
119
+ fieldValue = fieldValue . toLowerCase ( ) ;
120
+ groupval = groupval . toLowerCase ( ) ;
121
+ }
122
+ if ( comparer ( fieldValue , groupval ) === 0 ) {
118
123
res . push ( data [ i ] ) ;
119
124
} else {
120
125
break ;
You can’t perform that action at this time.
0 commit comments