Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issue with table sorting

Hi JB,
I have an issue with table sorting when i have null value for property in object of table array.

var comparatorsMap = new Map();
comparatorsMap.set('date', comparator);
self.array = ko.observableArray([{name:"John",id:1,FullName:"John Brock"},
{name:nullid:1,FullName:"Praveen"},
{name:"David",id:1,FullName:null}]);
self.dataprovider(new PagingDataProviderView(new ArrayDataProvider(self.array, {
keyAttributes: 'id', sortComparators: { comparators: comparatorsMap }
})));
image.png

My example is given above and the issue in a image
OJET Version: 11.0.0
OS: Windows

Comments
Post Details
Added on Mar 28 2022
0 comments
166 views