I have an array containing friends list of a user on Facebook.
I have to display that list and provide a text field on the top of the list to enter first letter of any of his/her friends name. When the user enters a letter in the text field, the program should display only the names that start with the entered letter, all other names should vanish.
In addition the names should be sorted alphabetically.
How do I perform this task?