Highest & Lowest as Query option

Hello,

I wonder if there could be a query option fo find the highest or lowest value for parameters of channels in a selection (or at least for the intensity values)

I ran into this question thinking about a solution for my "followme-macro" probelm (related Facebook article: https://www.facebook.com/groups/etceosprogrammers/permalink/3407428806011801/)

But could also be useful for other parameters than intensity.