Skip to content

Commit

Permalink
Remove async call for getOne sortingMode
Browse files Browse the repository at this point in the history
  • Loading branch information
tspoke committed Apr 6, 2018
1 parent 1a3d950 commit 64e5194
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ private Sort convertToSort(SortType st) {
private RealmResults<T> applySortingMode(SortingMode sm, RealmQuery<T> query){
KeysAndSorts keysAndSorts = convertSortingMode(sm);
if(keysAndSorts != null){
return query.findAllSortedAsync(keysAndSorts.key, keysAndSorts.sort);
return query.findAllSorted(keysAndSorts.key, keysAndSorts.sort);
}
return query.findAll();
}
Expand Down

0 comments on commit 64e5194

Please sign in to comment.