Skip to content

Commit 9532c0a

Browse files
author
Ramon Maciel
committed
Fix field sorting
1 parent 25fa06e commit 9532c0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/forest_liana/schema_file_updater.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def initialize filename, collections, meta
118118

119119
# NOTICE: Sort keys
120120
@collections = @collections.map do |collection|
121-
collection['fields'].sort do |field1, field2|
121+
collection['fields'].sort! do |field1, field2|
122122
[field1['field'], field1['type'].inspect] <=> [field2['field'], field2['type'].inspect]
123123
end
124124

0 commit comments

Comments
 (0)