diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
 # CHANGELOG
 
+## master
+
+## v0.1.1.0
+
+* Output files in sorted ordering.
+
 ## v0.1.0.2
 
 * Fix package category, from Web to Development.
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
 
 ```
 # Install from Stack Nightly
-stack install stack-templatizer --nightly
+stack install stack-templatizer --resolver nightly
 
 # Or build and install from source
 git clone https://github.com/prikhi/stack-templatizer
diff --git a/src/Main.hs b/src/Main.hs
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -3,6 +3,7 @@
 {-# LANGUAGE TupleSections #-}
 module Main where
 
+import           Data.List                      ( sort )
 import           System.Directory               ( listDirectory
                                                 , doesDirectoryExist
                                                 )
@@ -42,9 +43,12 @@
 
 getFilesInDirectory :: FilePath -> IO [FilePath]
 getFilesInDirectory baseDirectory = do
-    basePaths <- listDirectory baseDirectory
+    basePaths <- listDirSorted baseDirectory
     concat <$> mapM (recursiveList "") basePaths
   where
+    listDirSorted :: FilePath -> IO [FilePath]
+    listDirSorted =
+        fmap sort . listDirectory
     recursiveList :: String -> FilePath -> IO [FilePath]
     recursiveList parentDir path = do
         let templatePath = parentDir </> path
@@ -52,7 +56,7 @@
         isDirectory <- doesDirectoryExist fullPath
         if isDirectory
             then do
-                files <- listDirectory fullPath
+                files <- listDirSorted fullPath
                 concat <$> mapM (recursiveList templatePath) files
             else return [templatePath]
 
diff --git a/stack-templatizer.cabal b/stack-templatizer.cabal
--- a/stack-templatizer.cabal
+++ b/stack-templatizer.cabal
@@ -1,13 +1,13 @@
 cabal-version: 1.12
 
--- This file has been generated from package.yaml by hpack version 0.33.0.
+-- This file has been generated from package.yaml by hpack version 0.35.1.
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: f2cc2a486169fe7d08e68628e9c2ba522e1ab20ace9d1ba2039c7dd3d3bdab8e
+-- hash: c53e807db04e8b8ab72ceacd797c38f9885d39cd532a917e3f101bac72614b20
 
 name:           stack-templatizer
-version:        0.1.0.2
+version:        0.1.1.0
 synopsis:       Generate a stack template from a folder.
 description:    @stack-templatizer@ is an application that generates a @.hsfiles@ stack
                 template from a folder of template files.
@@ -26,7 +26,7 @@
 bug-reports:    https://github.com/prikhi/stack-templatizer/issues
 author:         Pavan Rikhi
 maintainer:     pavan.rikhi@gmail.com
-copyright:      2020 Pavan Rikhi
+copyright:      2020-2023 Pavan Rikhi
 license:        BSD3
 license-file:   LICENSE
 build-type:     Simple
@@ -47,6 +47,6 @@
   build-depends:
       base >=4.7 && <5
     , bytestring <1
-    , directory >=1 && <2
-    , filepath >=1 && <2
+    , directory ==1.*
+    , filepath ==1.*
   default-language: Haskell2010
