sort list items by name asc

This commit is contained in:
yggverse 2025-07-09 19:58:28 +03:00
parent 7592f7a106
commit 851cac6bdd

View file

@ -387,6 +387,7 @@ fn list(info: &TorrentMetaV1Info<ByteBufOwned>, limit: usize) -> Option<Vec<(Str
b.push(("...".to_string(), l));
break;
}
b.sort_by(|a, b| a.0.cmp(&b.0)); // @TODO optional
b
})
}