Refactored Sorting to make easier to test. Search is working besides the term frequency... In other words, certain terms don't hold more weight than other terms.