Fix section item position at lexical asc ordering

Signed-off-by: Kornél Szekeres <szekereskornel@gmail.com>
This commit is contained in:
Kornél Szekeres 2024-11-16 10:53:01 +01:00
parent c5a9d0b862
commit 6cccf496d5

View file

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