Small bugfix regarding sortfield parameter.