Sorting params, tests

Hey,
I've added sorting paramters for pagination helper.