Maybe if you make an event like this:
For each 'object' (ordered): order by 'variable'
Object: move to bottom
Then you can use the "pick top" action because the one with the highest 'variable' was the last one sent to bottom, which means the top one is the lowest 'variable'