Search
Finish the method definition given below.
states is an array of hashes, each of which has the keys state, capital and official_language. The method should return a new array which is states sorted by their capital names in alphabetical order.
states
state
capital
official_language