Sorting out paths