swaps matching results and sortby around