On Sep 3, 4:27 pm, Brion <p...@arcor.de> wrote:
> On Sep 2, 10:34 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
> wrote:
>
> > Define "outer string" and "inner string".
>
> Only as slightly OT as the above answers:
>
> I thought you would read the whole question. It is all clearly
> defined:
No, it isn't. You provided a data structure that, to me, is not
consistent with your question, javascript or HTML. It might be XML,
but you say it is the final output. The names attributes are only
related to the category elements by position, should the output be:
<category>
<name>...</name>
<name>...</name>
</category>
<category>
<name>...</name>
<name>...</name>
</category>
or similar?
> Categories = outer strings
> names = inner strings
>
> I also thought I only will get an answer by someone who is not
> clueless about the subject.
What subject? You mentioned sorting an array to get the above output
without ever specifying what the structure of the original array (or
input data) was.
> But it seems my assumptions were all definetely wrong.
Apparently, I can't answer that since I don't know what your
assumptions were regarding "the subject"
> Bye guys - never mind - I'll try it myself
If you post a bit more information you might get a better answer - or
not.
--
Rob