[ad_1]
By default when you sort an array sorts by the first element first.
You can reverse the array for the purposes of the sort.
channel_counts_for_history_graph.map(&:reverse).max[0]
0
[ad_2]
solved Get min and max value from this array of hashes