extract sort and limit methods to PathResult