diff --git a/tests/assets.rs b/tests/assets.rs
index d5de9015..fc01d9e8 100644
--- a/tests/assets.rs
+++ b/tests/assets.rs
@@ -8,7 +8,7 @@ fn all_themes_are_present() {
     let assets = HighlightingAssets::from_binary();
 
     let mut themes: Vec<_> = assets.themes().collect();
-    themes.sort();
+    themes.sort_unstable();
 
     assert_eq!(
         themes,