by Matt Gleeson.
Apologies, the keys should have read:
params[0][orderby]
params[0][order]
Cheers,
-Matt.