Fix sorting of search action matches. Closes #52.