From 5487b3f229fa3ce56f105733caff6a707c39e7bb Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Sat, 1 Feb 2020 22:50:18 -0500 Subject: [PATCH] Use sortOn instead of sortBy and comparing --- src/ShellCheck/Checker.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShellCheck/Checker.hs b/src/ShellCheck/Checker.hs index 2837d9a..b423f2d 100644 --- a/src/ShellCheck/Checker.hs +++ b/src/ShellCheck/Checker.hs @@ -104,7 +104,7 @@ checkScript sys spec = do code = cCode (pcComment pc) severity = cSeverity (pcComment pc) - sortMessages = sortBy (comparing order) + sortMessages = sortOn order order pc = let pos = pcStartPos pc comment = pcComment pc in