@@ -76,8 +76,8 @@ compImport (Import n i q) (Import n' i' q')
7676 | compImportType i i' /= EQ = compImportType i i'
7777 -- This means that for a stable sort, the first implicit import will stay
7878 -- the first implicit import
79− | P.isImplicit i && isNothing q = LT
80− | P.isImplicit i && isNothing q' = GT
79+ | not (P.isExplicit i) && isNothing q = LT
80+ | not (P.isExplicit i) && isNothing q' = GT
8181 | otherwise = compare n n'
8282
8383-- | Reads a file and returns the (lines before the imports, the imports, the