Rubyの配列を並び替えるときはArray#sortかArray#sort_byを使うことになるかと思います。 data = (1..10).to_a.shuffle p data.sort # [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] require 'date' data = [ {id: 1, name: '吉田(A)', ruby: 'yoshida', join_date: Date.new(2009, 4, 1)}, {id: 2, name: '鈴木', ruby: 'suzuki', join_date: Date.new(2015, 4, 1)}, {id: 3, name: '吉田(B)', ruby: 'yoshida', join_date: Date.new(2009, 4, 1)}, {id: 4, name: '佐藤', ruby: 's