Sort the index json file
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -20,6 +20,6 @@ Dir["#{ENV["TLDRHOME"]}/pages/**/*.md"].each do |file|
|
|||||||
end
|
end
|
||||||
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)
|
File.write("#{ENV["TLDRHOME"]}/pages/index.json", {commands: commands}.to_json)
|
||||||
|
Reference in New Issue
Block a user