Used index to sort greetings