diff options
Diffstat (limited to 'src/manager.rs')
-rw-r--r-- | src/manager.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/manager.rs b/src/manager.rs index 74f449b..34e19be 100644 --- a/src/manager.rs +++ b/src/manager.rs | |||
@@ -46,7 +46,9 @@ impl Manager { | |||
46 | } | 46 | } |
47 | 47 | ||
48 | pub fn list_feeds(&self) -> impl Iterator<Item = &Feed> { | 48 | pub fn list_feeds(&self) -> impl Iterator<Item = &Feed> { |
49 | self.feeds.iter() | 49 | let mut ordered: Vec<&Feed> = self.feeds.iter().collect(); |
50 | ordered.sort_by(|a, b| b.last_updated().cmp(&a.last_updated())); | ||
51 | ordered.into_iter() | ||
50 | } | 52 | } |
51 | 53 | ||
52 | pub fn store(&self) -> Result<StoreStatus, IOError> { | 54 | pub fn store(&self) -> Result<StoreStatus, IOError> { |