Allow sorting on multiple parameters at the same time (bug 867848)
use type directive for parameters (bug 862980)