Fixed issue which would result with badly-supplied sorting argument
Fixed issue with sort being referred to as sorttype and vice versa between view and template