Skip to main content
Participant
March 18, 2020
Question

(Adobe Indesign CS6) how to order my index alphabetically for dummies

  • March 18, 2020
  • 3 replies
  • 1146 views

Hello,

I am writing a book using Indesign CS6. It is pretty large (about 800 pages) and has an index comprising about 4000 entries. But it still works.

However a large index or not ... my index does not show a strict alphabetical order.

See below, please ...

Brinkhorst, Petra Laurentien (1966-heden)
Brink, Johannes Roelof Maria van den (1915-2006)

It seems that Indesign places commas and spaces BEHIND the normal A-Z sorting order instead of before.

I would like to see:

Brink, Johannes Roelof Maria van den (1915-2006)

Brinkhorst, Petra Laurentien (1966-heden)

Does someone has a ready script as I am not able to script it myself.

I placed this message before but it has disappeared for some reason.

Thanks for your help.

This topic has been closed for replies.

3 replies

Jongware
Community Expert
Community Expert
March 19, 2020

It's a known issue. I think this has been bothering people for as long as InDesign exists – it seems to me Adobe considers this "as per design", alas.

 

See this older thread for Peter Kahrel's ingenious solution (make sure to scroll down, there was a correction on the first listed script): https://community.adobe.com/t5/indesign/generated-index-is-not-in-alphabetical-order/td-p/10354823?page=1

Peter Kahrel
Community Expert
Community Expert
March 19, 2020

Completely forgot about that one. And it's only a year ago!

Derek Cross
Community Expert
Community Expert
March 18, 2020

Best to get a professional indexer.

E.g. https://www.indexers.org.uk

 

Peter Kahrel
Community Expert
Community Expert
March 19, 2020

When you replace the comms (and the following space) with something that sorst before a letter, the index is sorted correctly. You do that in the sort-order field. So when you set the sort-order field of this one:

 

Blom, Nicolaas Selhorst (1899-1972)

 

to this:

 

Blom0Nicolaas Selhorst (1899-1972)

 

Blom sorts before Blomberg. You'd have to do all comma's naturally. This little script does that:

re = /, ?/g;
topics = app.activeDocument.indexes[0].allTopics;
for (i = topics.length-1; i >= 0; i--) {
  topics[i].sortOrder = topics[i].name.replace (re, '0');
}

There are other index sort anomalies but your name problem is mostly fixed.

 

P.

Derek Cross
Community Expert
Community Expert
March 18, 2020

Have a look at https://www.id-extras.com/products/liveindex/ to see if that may help.

A couple of tips: Make sure you do the occasional Save As and incrementally rename the file (name1a, name 1b and so on) to clear out the crud that can build up in a file (and you can also go back to an earlier version if something happens to the current document), also keep copies of your file externally in case something happens to your computer!

Finally, don't update your OS – InDesign CS6 is an old version and it may not be compatible with newer operating sustems.

Participant
March 18, 2020

@Derek_Cross (and others)

Well. I'll try it again as my posts dissappear for some reason ...

I do not need my index to be "hyperlinked". I just want a better indexing order.

New example:

Indesign ordens as follows ...

Blomberg, Werner Eduard Fritz von (1878-1946)

Blom, Nicolaas Selhorst (1899-1972)

But I would like to see THIS ...

Blom, Nicolaas Selhorst (1899-1972)

Blomberg, Werner Eduard Fritz von (1878-1946)

So - on the fifth position - I want the COMMA before the b! (and the same for the SPACE).

Thank you for your help!