Fixed ordering of results in view

Results are now displayed as sorted by the controller. Fixes #39.