Commit 9078b22c08
Unsigned
Layout: unified · split
src/room/mod.rs +1 −2
| @@ -34,7 +34,6 @@ pub const BUFFER_CLOSED_ERROR: &str = | ||
| 34 | 34 | use std::{ |
| 35 | 35 | borrow::Cow, |
| 36 | 36 | cell::RefCell, |
| 37 | cmp::Reverse, | |
| 38 | 37 | collections::HashMap, |
| 39 | 38 | ops::Deref, |
| 40 | 39 | rc::Rc, |
| @@ -781,7 +780,7 @@ impl MatrixRoom { | ||
| 781 | 780 | if let Ok(buffer) = self.buffer_handle().upgrade() { |
| 782 | 781 | let mut lines: Vec<LineCopy> = |
| 783 | 782 | buffer.lines().map(|l| l.into()).collect(); |
| 784 | lines.sort_by_key(|l| Reverse(l.date)); | |
| 783 | lines.sort_by_key(|l| l.date); | |
| 785 | 784 | |
| 786 | 785 | for (line, new) in buffer.lines().zip(lines.drain(..)) { |
| 787 | 786 | let tags = |