Skip to content

Commit 6cccf49

Browse files
committed
Fix section item position at lexical asc ordering
Signed-off-by: Kornél Szekeres <[email protected]>
1 parent c5a9d0b commit 6cccf49

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/src/main/java/it/niedermann/owncloud/notes/main/MainViewModel.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,10 @@ private List<Item> fromNotes(List<Note> noteList, @NonNull NavigationCategory se
284284
if (sortingMethod == SORT_MODIFIED_DESC) {
285285
return fillListByTime(getApplication(), noteList);
286286
}
287-
List<Item> itemList = fillListByInitials(getApplication(), noteList);
288287
if(sortingMethod != SORT_LEXICOGRAPHICAL_ASC){
289-
Collections.reverse(itemList);
288+
Collections.reverse(noteList);
290289
}
291-
return itemList;
290+
return fillListByInitials(getApplication(), noteList);
292291
}
293292

294293
@NonNull

0 commit comments

Comments
 (0)