sort order time desc by default

This commit is contained in:
yggverse 2025-08-06 12:09:52 +03:00
parent 57ab9ef1f5
commit 1d64acef2c
2 changed files with 4 additions and 4 deletions

View file

@ -48,7 +48,7 @@ fn index(
}
let (total, torrents) = storage
.torrents(
Some((Sort::Modified, Order::Asc)),
Some((Sort::Modified, Order::Desc)),
page.map(|p| if p > 0 { p - 1 } else { p } * storage.default_limit),
Some(storage.default_limit),
)
@ -91,7 +91,7 @@ fn rss(feed: &State<Feed>, storage: &State<Storage>) -> Result<RawXml<String>, C
let mut b = feed.transaction(1024); // @TODO
for torrent in storage
.torrents(
Some((Sort::Modified, Order::Asc)),
Some((Sort::Modified, Order::Desc)),
None,
Some(storage.default_limit),
)