Sorting contact list in alphabetical order.

- Sorting contact list in alphabetical order.
- Removed unused variables.
Updated version.