sort paths