@Linnea – Peter Kahrel once wrote a script for sorting paragraphs.
You can put it to use after you generated the index.
Language-aware paragraph sorter
Also a good read, but more technically is:
(Read the valuable side note for using Peter Kahrel's script for non-English users there…)
Thanks for your tip. I am rather afraid of a major script to do it, but at least I know now that it's unlikely Adobe can help with anything.
Have you looked a the sort order fields. You could override InDesigns sort.
yes I used the sort order fields to get the first level Swedish alphabet. It is the second level that is not sorting - often due to the second letter in the word (see my original question). I have now looked again at the sorting options to see if I missed something, but I didn't see anything that made a difference. Too bad!
Still looking for a solutions and all help is appreciated!
… I am rather afraid of a major script to do it …
@Linnea – don't be afraid!
I'd like to encourage you using a script.
Just make sure you will work on a copy of your original InDesign file ;-)
It's not that hard…
Just read about it in the links I provided in answer #1.
If you need specific help, I think Peter Kahrel is around here often.
And if not, drop him a line.
I almost daren't ask -- did you set the sort order field in the second level? What you set in the first level doesn't automatically trickle down to the second level.
How did you set the first-level sort order fields, by the way?
My text is all letters and no numbers. Priority 1 is checked (to include), Script is Roman and Header Type is Swedish/Finnish. That's it. If the word started in Å,Ä or Ö I am pretty sure that Adobe would put them last, as is correct in Swedish (no word in my indexed text does though). However inside each word it is not sorting properly.
In the example below, Självförsvar should come after Sjukdomar and Sjukgymnastk, not before. The first and fifth lines in the example are just to frame it.
Sidoackreditering, -ar 19, 45.
Skatteverket 26, 264, 270, 279.
There aren't more than twenty odd changes I need to make and I have done so, carefully carefully. But for the future, I would love to know how to make this work.
And thanks so much Uwe, I may have to do your solution in the end (as the edits keep coming).
You need to set the document's default language as well. The language applied to some text doesn't matter, but the default language does. To set the document's default language, make sure that nothing is selected (press Shift+Ctrl+A or its Mac equivalent), then open the Character panel and select Swedish. Now your index will sort correctly, no need to do anything with the sort order fields.
InDesign's behaviour is strange here and should clearly be fixed. It's like this:
= To get words sorted correctly at their first letter, you need to set the header type in the Sort Options window
= To get words sort correctly by the rest of the letters, you need to set the document's default language.
many thanks. I had to break from this publication for a bit but I will definitely look into this tomorrow. I'll let you know, and thanks.
it worked. Can't thank you enough! This will be enormously helpful also in the future.
Thanks for all the other suggestions as well - I appreciate the engagement.