should be a util method getSortPath()