Add sort to search results according to score.

search word in title: score += 5
search word in text: score += 1

Higher score means higher position.

Sorting is done in ruby, because I do not know how to implement it in SQL.