mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-12-18 08:32:24 +03:00
Fix section item position at lexical asc ordering
Signed-off-by: Kornél Szekeres <szekereskornel@gmail.com>
This commit is contained in:
parent
c5a9d0b862
commit
6cccf496d5
1 changed files with 2 additions and 3 deletions
|
@ -284,11 +284,10 @@ public class MainViewModel extends AndroidViewModel {
|
|||
if (sortingMethod == SORT_MODIFIED_DESC) {
|
||||
return fillListByTime(getApplication(), noteList);
|
||||
}
|
||||
List<Item> itemList = fillListByInitials(getApplication(), noteList);
|
||||
if(sortingMethod != SORT_LEXICOGRAPHICAL_ASC){
|
||||
Collections.reverse(itemList);
|
||||
Collections.reverse(noteList);
|
||||
}
|
||||
return itemList;
|
||||
return fillListByInitials(getApplication(), noteList);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
|
Loading…
Reference in a new issue