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