Skip to content

Commit

Permalink
!fixup Rename sorter or to lexicographic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Jul 1, 2024
1 parent a530955 commit fa1ea1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/matrix-sdk-ui/src/room_list_service/room_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use tokio::{select, sync::broadcast};

use super::{
filters::BoxedFilterFn,
sorters::{new_sorter_name, new_sorter_or, new_sorter_recency},
sorters::{new_sorter_lexicographic, new_sorter_name, new_sorter_recency},
Error, Room, State,
};

Expand Down Expand Up @@ -165,7 +165,7 @@ impl RoomList {

let (values, stream) = (raw_values, merged_streams)
.filter(filter_fn)
.sort_by(new_sorter_or(vec![
.sort_by(new_sorter_lexicographic(vec![
Box::new(new_sorter_recency()),
Box::new(new_sorter_name())
]))
Expand Down
4 changes: 2 additions & 2 deletions crates/matrix-sdk-ui/src/room_list_service/sorters/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

//! A collection of room sorters.

mod lexicographic;
mod name;
mod or;
mod recency;

use std::cmp::Ordering;

pub use lexicographic::new_sorter as new_sorter_lexicographic;
pub use name::new_sorter as new_sorter_name;
pub use or::new_sorter as new_sorter_or;
pub use recency::new_sorter as new_sorter_recency;

use super::Room;
Expand Down

0 comments on commit fa1ea1d

Please sign in to comment.