Add links and sorted paths