|
|
|
@ -50,7 +50,7 @@ fun <T : RealmModel> Realm.sorted(clazz: Class<T>) : RealmResults<T> { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns all entities of the [clazz] sorted with their default sorting |
|
|
|
* Returns all entities of the [C] class sorted with their default sorting |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
inline fun <reified C : RealmModel> Realm.sorted() : RealmResults<C> { |
|
|
|
inline fun <reified C : RealmModel> Realm.sorted() : RealmResults<C> { |
|
|
|
return this.sorted(C::class.java) |
|
|
|
return this.sorted(C::class.java) |
|
|
|
|