Reorder methods of finding permalinks