discover/grub: Reverse BLS entries sorting to match Petitboot's boot order
[petitboot] / discover / grub2 / blscfg.c
index 02ac621be061b9859d33cc819562decde02f0928..d20dde20bb9c3a51d6152dc89d21a34117470021 100644 (file)
@@ -162,7 +162,7 @@ static int bls_filter(const struct dirent *ent)
 
 static int bls_sort(const struct dirent **ent_a, const struct dirent **ent_b)
 {
-       return strverscmp((*ent_b)->d_name, (*ent_a)->d_name);
+       return strverscmp((*ent_a)->d_name, (*ent_b)->d_name);
 }
 
 int builtin_blscfg(struct grub2_script *script,