fix leader selection by partition

Partitions are returned either in reversed or unpredictable order. I guess it's safe to assume it's unpredictable.