Skip to content

Commit c233143

Browse files
committed
Sort Dojo Data by ID for better diff
1 parent 3a81104 commit c233143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

get_data_from_earth.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def request_data(query:, variables:)
157157

158158
File.write('tmp/number_of_dojos', dojo_data.length)
159159
File.open('dojos_earth.json', 'w') do |file|
160-
file.puts(JSON.pretty_generate(dojo_data))
160+
file.puts JSON.pretty_generate(dojo_data.sort_by{|dojo| dojo[:id]})
161161
end
162162

163163
# Show next step for developers

0 commit comments

Comments
 (0)