Sort paragraphs in a certain way
Hi there.
My current thread deals with the re-sorting of the paragraphs in a text frame.
This is like it looks before:
HEADLINE
First text (description). xxxxxxxxxxxxx
xxxxxxxxxxxxx xxxxxxxxxx xxxxxxxx xxxxxx
xxxxxxxxxxxxx xxxxxxxxxxx xxxxxxxxx xxxxxxx
xxxxxxxxxxxxxxxxxxx xxxxxxxxxx xxxxxxxx xxx
xxxxxxxxxxxxxxx xxxxxxxx xxxxxxx.
Second descriptive text xxxxxx xxxxxxxx x
xxxxxxxxxx xxxxxxxxxx xxxxxxxxxx xxxxxxx xxx
xxxxxxxxxxxxx xxxxxxxxx xxxxxxxxxxxxxx xxxxxxxx
Article 1
Article 2
Article 3
Article n
This is how I want to have it after re-sorting:
HEADLINE
First text (description). xxxxxxxxxxxxx
xxxxxxxxxxxxx xxxxxxxxxx xxxxxxxx xxxxxx
xxxxxxxxxxxxx xxxxxxxxxxx xxxxxxxxx xxxxxxx
xxxxxxxxxxxxxxxxxxx xxxxxxxxxx xxxxxxxx xxx
xxxxxxxxxxxxxxx xxxxxxxx xxxxxxx.
Article 1
Article 2
Article 3
Article n
Second descriptive text xxxxxx xxxxxxxx x
xxxxxxxxxx xxxxxxxxxx xxxxxxxxxx xxxxxxx xxx
xxxxxxxxxxxxx xxxxxxxxx xxxxxxxxxxxxxx xxxxxxxx
The number of articles changes. Each of them is a paragraph for itself.
Next step will be the new formating of the paragraphs, if it is important for this thread...
I guess it works with an array in which all paragraphs are stored. Then they must be called up in a special order.
Only: I do not know the correct syntax for that... Can anybody help me in the easiest way?
