@peterflynn, I guess my line of thinking was not to sort it before there's a chance it can be discarded. will change to use Array's indexOf.