I am basically trying to select every string in an array that matches a particular string.
I am currently using the following code, but as you guys know, this only gives an array of the indexes of the elements that evaluate to true. I want the actual string at that position.
arr.each_index.select{|i| arr[i].chars.sort.join == someString}