allow to parse sort[by] and sort[direction]