fix sorting

This commit is contained in:
kosyak 2023-11-13 22:27:18 +01:00
parent b2556daacd
commit c09551b4c0

View file

@ -675,7 +675,7 @@ public class ConversationFragment extends XmppFragment
@Override @Override
public boolean onActionItemClicked(ActionMode mode, MenuItem item) { public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
Collections.sort(selectedMessages, (o1, o2) -> Long.compare(o1.getTimeSent(), o2.getMergedTimeSent())); Collections.sort(selectedMessages, Comparator.comparingLong(Message::getTimeSent));
if (item.getItemId() == R.id.copy_message) { if (item.getItemId() == R.id.copy_message) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();