4 ms·I think you need `products.sort_by(&:cost).last.cost` for the same result.by viraptor 8y agoI think you need `products.sort_by(&:cost).last.cost` for the same result.klohto 8y agoYou’re correct!