Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

realmQuery.distinct(), realmQuery.sort(), realmResults.sort()

Pre-release
Pre-release
Compare
Choose a tag to compare
@juanmendez juanmendez released this 29 Mar 23:42
· 61 commits to master since this release

user can now sort, and also us distinct. realmResults.distinct( field1, field2), or realmResults.distinct(field1).distinct(field2), do the same thing, as the result is finding realmModels which are unique having field1, and field2. This is what makes sense, but I also noticed Realm might behave a bit differently.

realmResults.sort(field1, field2), it is sorted in reverse order. First field2, and then field1. That's how it's done by Realm during testing I could confirm that is what happened.