Sort entries

This commit is contained in:
Edward Shen 2021-10-27 17:45:36 -07:00
parent 364a467626
commit c29340c93b
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -113,10 +113,11 @@ pub fn decrypt(
}
}
}
entries.sort_by(|a, b| a.name.cmp(&b.name));
Ok(DecryptedData::Archive(blob, entries))
} else if mime_type == "application/gzip" {
let entries = vec![];
Ok(DecryptedData::Archive(blob, entries))
Ok(DecryptedData::Archive(blob, vec![]))
} else {
Ok(DecryptedData::Blob(blob))
}