Added functionality for searching and sorting alphabetically