You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.
I am trying to pass a custom comparator for a column but it is not getting called.
After researching the source code, I found that the comparator function is not passed while sorting the data.
var clientSorts = [];
for(var i=0, len=sorts.length; i < len; i++) {
var c = sorts[i];
if(c.comparator !== false){
var dir = c.sort === 'asc' ? '' : '-';
clientSorts.push(dir + c.prop);
}
}
if(clientSorts.length){
// todo: more ideal to just resort vs splice and repush
// but wasn't responding to this change ...
var sortedValues = this.$filter('orderBy')(this.rows, clientSorts);
this.rows.splice(0, this.rows.length);
this.rows.push(...sortedValues);
}
I am trying to pass a custom comparator for a column but it is not getting called.
After researching the source code, I found that the comparator function is not passed while sorting the data.
Above snippet can be found here
I am trying these feature with the following versions:
The text was updated successfully, but these errors were encountered: