order tables by name and change to search functionality