Removing packages not in use and ordering alphabetically