This content has been marked as final. Show 4 replies
You could use the array to create an ArrayCollection, sort the ac, and then get the last item, though I don't know if this is the most efficient way to do it:
What I ended up doing was sorting the Array (descending for MAX, ascending for MIN) and then grabbing the first item in the Array. Works like a charm in very few lines of code.
I was able to simplify this even more than the original intent.
I actually have an Array of XML objects, and I was stripping out one of the properties from these to get the lowest one.
Here's what I did to make it even more simple: