How to get data in DESC order Realm React Native
To get data in descending order in Realm React Native or react ionic you need to use the following sorted method like below:-
var contacts = realm.objects('contacts').sorted('id', true);
console.log(contacts);
var contacts = realm.objects('contacts').sorted('id', true);
console.log(contacts);
var contacts = realm.objects('contacts').sorted('id', true); console.log(contacts);
if you have a question ask here Ask Questions