Skip to main content
smnthaboyd
Participant
August 17, 2023
Question

Script for InDesign to Sort Pages Alphabetically

  • August 17, 2023
  • 3 replies
  • 514 views

Hello all,

 

I'm trying to sort 100+ nametags on InDesign alphabetically by last name. Is this possible to do? I know nothing about scripts so I am curious on how I can go about this in an easy manner. Thanks!

This topic has been closed for replies.

3 replies

m1b
Community Expert
Community Expert
August 18, 2023

Hi @smnthaboyd, there are many ways to do what you want, but they depend critically on your specific set-up. That's why we all are hoping you can post a demo file with just a few pages. Then we can really help.

- Mark

Peter Kahrel
Community Expert
Community Expert
August 17, 2023

What do you mean by 'nametags on pages'? Can you show an example, a screenshot?

Barb Binder
Community Expert
Community Expert
August 17, 2023

Your title says "sort pages" but your question appears to be about "sorting paragraphs". I'm guessing you must have one name per page? 

 

If this is a data merge activty and each name is on its own page, one option is to sort in Excel and then re-merge. If typed in manually, InDesign does come with a script for sorting by paragraphs: Window > Utilities > Scripts.

 

If this one doesn't work, we have very talented scripters who will likely be able to give you a hand. In the meantime, please share more infomation about how your file is set up. Screen shots with Hidden Characters visible is very helpful.

 

~Barb

 

~Barb at Rocky Mountain Training
smnthaboyd
Participant
August 17, 2023

I have 100+ seperate nametags, each on their own page. The pages themselves need to be sorted alphabetically by last name. So it's about sorting pages, I would assume?

Robert at ID-Tasker
Legend
August 17, 2023

Why?