diff --git a/CHANGELOG b/CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,8 @@
 # CHANGELOG
 
+- 0.6.1.0
+    * Fix line patching issue in Editor
+
 - 0.6.0.0
     * Add a `simple_align` step
     * Move `records` step into `simple_align`
diff --git a/lib/Language/Haskell/Stylish/Editor.hs b/lib/Language/Haskell/Stylish/Editor.hs
--- a/lib/Language/Haskell/Stylish/Editor.hs
+++ b/lib/Language/Haskell/Stylish/Editor.hs
@@ -19,7 +19,8 @@
 
 
 --------------------------------------------------------------------------------
-import           Data.List                      (intercalate)
+import           Data.List                      (intercalate, sortBy)
+import           Data.Ord                       (comparing)
 
 
 --------------------------------------------------------------------------------
@@ -41,14 +42,15 @@
 
 --------------------------------------------------------------------------------
 applyChanges :: [Change a] -> [a] -> [a]
-applyChanges changes
+applyChanges changes0
     | overlapping blocks = error $
         "Language.Haskell.Stylish.Editor.applyChanges: " ++
         "refusing to make overlapping changes on lines " ++
         intercalate ", " (map printBlock blocks)
-    | otherwise          = go 1 changes
+    | otherwise          = go 1 changes1
   where
-    blocks = map changeBlock changes
+    changes1 = sortBy (comparing (blockStart . changeBlock)) changes0
+    blocks   = map changeBlock changes1
 
     printBlock b = show (blockStart b) ++ "-" ++ show (blockEnd b)
 
diff --git a/stylish-haskell.cabal b/stylish-haskell.cabal
--- a/stylish-haskell.cabal
+++ b/stylish-haskell.cabal
@@ -1,5 +1,5 @@
 Name:          stylish-haskell
-Version:       0.6.0.0
+Version:       0.6.1.0
 Synopsis:      Haskell code prettifier
 Homepage:      https://github.com/jaspervdj/stylish-haskell
 License:       BSD3
