new_sorter_latest_event

Function new_sorter_latest_event 

Source
pub fn new_sorter_latest_event() -> impl Sorter
Expand description

Create a new sorter that will sort two RoomListItem by their latest events’ state: latest events representing a local event (LatestEventValue::LocalIsSending or LatestEventValue::LocalCannotBeSent) come first, and latest event representing a remote event (LatestEventValue::Remote) come last.