79580926

Date: 2025-04-18 11:15:57
Score: 0.5
Natty:
Report link

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 ...

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Sumit Saxena