diff --git a/web/src/decrypt.rs b/web/src/decrypt.rs index ac9059b..f43fe5e 100644 --- a/web/src/decrypt.rs +++ b/web/src/decrypt.rs @@ -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)) }