I don’t think there is a other solution, except you sort your array by decreasing order after you change a item.
You can write a own function so you only have one node in your BP, but I think there is no other solution than a for loop to check all elements in an array