Cfengine Help: Re: Sorting an slist

2011-06-22 Thread no-reply
Forum: Cfengine Help Subject: Re: Sorting an slist Author: mark Link to topic: https://cfengine.com/forum/read.php?3,22550,22582#msg-22582 FYI, the order the comes out of getindices is the hashing order in the hash table. It might be useful to permit some sort functions eventually, but

Cfengine Help: Re: Sorting an slist

2011-06-22 Thread no-reply
Forum: Cfengine Help Subject: Re: Sorting an slist Author: Authority Link to topic: https://cfengine.com/forum/read.php?3,22550,22581#msg-22581 Aha! Thanks, Diego. So using your first suggestion, it is clear to me that getindices is populating the slist out of order, but I don't like the

Cfengine Help: Re: Sorting an slist

2011-06-22 Thread no-reply
Forum: Cfengine Help Subject: Re: Sorting an slist Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,22550,22579#msg-22579 Wes, Not very elegant, but you could define a list in the order you want and iterate over that instead of getting the indices from the array: "dn

Cfengine Help: Re: Sorting an slist

2011-06-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Sorting an slist Author: nba1314 Link to topic: https://cfengine.com/forum/read.php?3,22550,22575#msg-22575 Yesterday I was in the game to buy equipment, the result has been deceived many Runescape Gold. Later, my friend told me that person in the long game fool

Sorting an slist

2011-06-21 Thread Wes Hardin
I build an array like this: "siteconf[cos][dns_config][nameserver][0]" comment => "Primary DNS server" , string => "10.9.72.50"; "siteconf[cos][dns_config][nameserver][1]" comment => "Secondary DNS server" , st