Skip to content

Commit

Permalink
Revert "remove to_s when sorting since integers should not be sorted …
Browse files Browse the repository at this point in the history
…alphabetically"

This reverts commit da687d7.
  • Loading branch information
tycooon committed Aug 11, 2023
1 parent da687d7 commit 73c27f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
table_sync (6.3.1)
table_sync (6.3.0)
memery
rabbit_messaging (~> 0.13)
rails
Expand Down
2 changes: 1 addition & 1 deletion lib/table_sync/receiving/handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def call

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).to_s }

params = { data: data, target_keys: target_keys, version_key: version_key }

Expand Down
2 changes: 1 addition & 1 deletion lib/table_sync/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module TableSync
VERSION = "6.3.1"
VERSION = "6.3.0"
end

0 comments on commit 73c27f4

Please sign in to comment.