Find min in a custom struct?

I tried coming up with an answer, but as I was playing around I found a good answer at:

Also, looks like someone made a nice set of macros for min and max (doesn't work for floats):

1 Like