skip unsortable placeholder

This commit is contained in:
yggverse 2025-07-09 20:24:44 +03:00
parent 851cac6bdd
commit ac88344098

View file

@ -387,7 +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[..t].sort_by(|a, b| a.0.cmp(&b.0)); // @TODO optional
b
})
}