Fixed sorting test case

View wasn't rerendered after sorting, therefore results were inaccurate.