Browse Source

Merge pull request #296 from lord63-forks/sort-index-json

Sort the index json file
Romain Prieto 9 years ago
parent
commit
c0bbae2fdc
2 changed files with 2 additions and 2 deletions
  1. 0 0
      pages/index.json
  2. 2 2
      scripts/build_index.rb

File diff suppressed because it is too large
+ 0 - 0
pages/index.json


+ 2 - 2
scripts/build_index.rb

@@ -14,12 +14,12 @@ Dir["#{ENV["TLDRHOME"]}/pages/**/*.md"].each do |file|
         commands[name] = {
             name: name,
             platform: [platform]
-        } 
+        }
     else
         commands[name][:platform] << platform
     end
 end
 
-commands = commands.map do |k,v| v end
+commands = commands.sort.map do |k,v| v end
 
 File.write("#{ENV["TLDRHOME"]}/pages/index.json", {commands: commands}.to_json)

Some files were not shown because too many files changed in this diff