mirror of
https://github.com/NiciDieNase/chaosflix
synced 2025-02-17 05:28:24 +00:00
sort events alphabeticaly
This commit is contained in:
parent
095b07a224
commit
3e2ead0ed6
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ package de.nicidienase.chaosflix.touch.adapters;
|
|||
|
||||
import com.bumptech.glide.Glide;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import de.nicidienase.chaosflix.common.entities.recording.Event;
|
||||
|
@ -10,6 +11,7 @@ public class EventRecyclerViewAdapter extends ItemRecyclerViewAdapter<Event> {
|
|||
|
||||
public EventRecyclerViewAdapter(List<Event> items, OnListFragmentInteractionListener listener) {
|
||||
super(items, listener);
|
||||
Collections.sort(mItems,(o1, o2) -> o1.getTitle().compareTo(o2.getTitle()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue