@ -94,7 +94,9 @@ fn add(id: &String) -> io::Result<()> {
fn list() -> io:: Result<()> {
let db = read_db()?;
for item in db.iter() {
let mut vec: Vec<_> = db.iter().collect();
vec.sort();
for item in &vec {
println!("{}", item);
}
Ok(())