method to sort hash based on array of symbols.