Is "Max of Float Array" malfunctioning?

Have you tried to simply use the sort function ?

Sort

Though, in general I’d be super cautious with maps of “floats to something”, because float equality is not really what you may think it is