lib/table_sync/receiving/handler.rb in table_sync-4.1.1 vs lib/table_sync/receiving/handler.rb in table_sync-4.1.3
- old
+ new
@@ -21,10 +21,10 @@
target_keys = config.target_keys(data: data)
validate_data(data, target_keys: target_keys)
- data.sort_by! { |row| row.values_at(*target_keys) }
+ data.sort_by! { |row| row.values_at(*target_keys).hash }
params = { data: data, target_keys: target_keys, version_key: version_key }
if event == :update
params[:default_values] = config.default_values(data: data)