Begining of search result sorting by columns.