Closes #8: Added O(n^2) check for all possible fields in all sorting orders as a quick fix. This needs refactoring.