Sort result using the similarity between title and search term. #4

Currently working for foreign keys only.