Re: Retaining order of values in a url

2014-05-27 Thread John Pollard
Hi guys, on holiday so brief reply! My workaround code does actually only rely on the order in the URL itself, as it was solving that exact problem of formValueKeys() not being in order. The explanation of why needed is a bit involved. Thanks for the replies. John On 27 May 2014, at 05:00,

Re: Retaining order of values in a url

2014-05-27 Thread John Pollard
My workaround code does actually only rely on the order in the URL itself, as it was solving that exact problem of formValueKeys() not being in order. The explanation of why needed is a bit involved. Thanks for the replies. John On 27 May 2014, at 05:00, Aaron Rosenzweig wrote: Hi Cristoph,

Re: Retaining order of values in a url

2014-05-26 Thread Aaron Rosenzweig
Hi Cristoph, Order may be important to him if he has web server rewrite rules in place. AARON ROSENZWEIG / Chat 'n Bike e: aa...@chatnbike.com t: (301) 956-2319 On May 22, 2014, at 5:39 PM, CHRISTOPH WICK | i4innovation GmbH, Bonn c...@i4innovation.de wrote: Hi John,

Re: Retaining order of values in a url

2014-05-22 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi John, If you read the documentation of WORequest's formValueKeys method, it says: The returned array is not sorted in any particular order, and is not necessarily sorted in the same order on successive invocations of this method.

Retaining order of values in a url

2014-05-21 Thread John Pollard
Hi List, I note that WORequest.formValues() jumbles up the order of the values from a url. Is there a simple way to get them in order, or do I need to parse them out myself? I understand that normally the order shouldn't be important, but I have what I feel is a reasonable purpose for needing

Re: Retaining order of values in a url

2014-05-21 Thread John Pollard
My workaround to put them back in order, using a TreeMap to sort on the index position within the URI. NSArrayString formKeys = request().formValueKeys(); String uriStr = request().uri(); TreeMapInteger, String orderedKeysMap = new TreeMapInteger, String();

Re: Retaining order of values in a url

2014-05-21 Thread Ramsey Gurley
?key2=val2array=1key=valarray=2array=3 On May 21, 2014, at 9:56 AM, John Pollard j...@pollardweb.com wrote: My workaround to put them back in order, using a TreeMap to sort on the index position within the URI. NSArrayString formKeys = request().formValueKeys(); String