Keep stable order when selecting recursive in ldpath