typos
This ensures sorting when we sort by title but some title is not available. Now when all names are available, sorting takes place.

Before the user had to manually click on sort for a second time.