Forum Discussion
deltapez_21676
Nimbostratus
Feb 18, 2010Problem with external file
I'm having a problem retrieving data from an external file. The following loop displays the data out of order:
foreach { selectedpool } [class get pool_member_status_list]...
hoolio
Cirrostratus
Feb 18, 2010Hi D,
There isn't a guarantee of getting the datagroup contents back in the same order they're listed (whether using an internal or external datagroup). I think this is due to hashing that LTM performs when parsing the datagroup entries.
If you need to get them in a specific order, you could prepend a digit or letter to the class element and then sort by that. But I think that could be computationally expensive.
Out of curiosity, why do you need the elements back in order?
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects