When working with Realm in Android using Java, you can easily sort your query results, including sorting in descending order. Here's how:
RealmResults<YourObject> results = realm.where(YourObject.class)
.sort("fieldName", Sort.DESCENDING)
.findAll();
hope so it is working ...