Sha256: c09ad1fc2cf26574d20546f6622a70ce6155bd7c904d9b0b406c72280ca670f1

Contents?: true

Size: 179 Bytes

Versions: 34

Compression:

Stored size: 179 Bytes

Contents

User  = Struct.new(:name)
ARRAY = Array.new(3) do
  User.new(sprintf("%010d"), rand(1_000_000_000))
end

ARRAY.sort { |a, b| a.name <=> b.name }
ARRAY.sort_by(&:name)

ARRAY.sort

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
fasterer-0.11.0 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.10.1 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.10.0 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.9.0 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.8.3 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.8.2 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.8.1 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.8.0 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.7.1 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.7.0 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.6.0 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.5.1 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.5.0 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.4.2 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.4.1 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.4.0 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.3.2 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.3.1 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.3.0 spec/support/analyzer/13_sort_vs_sort_by.rb
fasterer-0.2.1 spec/support/analyzer/13_sort_vs_sort_by.rb