You don't have to cut and paste to alphabetize a list or sort text in any other way in your InDesign document. InDesign will happily do these tasks for you, but there's a trick to finding the command to do it. In this Lynda.com tutorial from InDesign Secrets, you'll learn how to sort text in InDesign and how to find the hidden script to do it.
- I need to alphabetize this list, and did you know that InDesign can do that for you? But you can look high and low in InDesign's menus and you'll never find the feature. Instead, you have to run a script that comes with InDesign. It's free, it ships with InDesign, but most InDesign users have no idea it's there. You can find it by heading up to the Window menu, choosing the Utilities submenu, and then choosing Scripts. Inside the Scripts panel, you want to open the Application folder, and then the Samples folder, and then, the JavaScript folder.
And there's all kinds of cool scripts in here. I'm going to scroll down to near the bottom, and here I see the sort paragraph script. That's the script that's going to let me alphabetize this text. But before I run it, I have to select the text that I want to alphabetize. So, I'll double-click over here to switch to the Type tool, and then select all the text I want to alphabetize. Now, I'm going to run the script by double-clicking on it in the Scripts panel. I have two choices inside this Sort Method pop-up menu here, I can choose Ignore Formatting or Retain Formatting. Formatting has to do with the text formatting that I've placed on top of the text.
For example, if any of this text had italic or bold text, I would need to choose Retain Formatting. But because there's no local formatting here, I can just leave it set to Ignore. Then, when I click OK, in an instant, InDesign goes through and alphabetizes the whole list. Now there are two weird things about this script that I want to let you know about. One is, if you want to undo this, you sometimes have to undo two or three times to get it back to the way it was. For example, I'll hit Cmd+z or Ctrl+z on Windows once and nothing happens. Then I'll press again, and then it goes back to the way it was.
The second thing has to do with that Retain Formatting feature that I pointed out. Let's go ahead and select some text and I'll make it italic, for example. Now I want to run this script again, but I want to be very careful about what I select. When you have formatting and you know that you're going to be using that Retain Formatting feature, you want to make sure you only select the text you want formatted, not any additional empty lines. See how down at the bottom, there's an empty paragraph? I don't want that. I'm going to move my cursor up to just the text inside that paragraph.
For some reason, if there's formatting and empty paragraphs, the script kind of freaks out and you get a warning. But now, with just that text selected, I'll run the script one more time by double-clicking on it, I'll choose Retain Formatting slower, and then click OK. Sort paragraphs is a great script, and it can save you so much time. There's a bunch of other scripts in here, too you should try. Just start double-clicking on these and see what they do.
Updated
12/23/2020Released
8/25/2011New techniques will be added to the collection every other week, so check back early and often. Find more tips and tricks at indesignsecrets.com.Note: Because this is an ongoing series, viewers will not receive a certificate of completion.
Skill Level Intermediate
Duration
Views
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.
Related Courses
-
InDesign CC 2018 Essential Training
with David Blatner6h 30m Beginner -
InDesign: Interactive PDFs
with David Blatner2h 27m Intermediate -
InDesign CC 2018: EPUB
with Anne-Marie Concepción4h 35m Intermediate -
InDesign CC 2019 Essential Training
with David Blatner5h 23m Beginner -
InDesign Quick Start
with David Blatner22m Beginner
-
This Week's Secret
-
Introduction
-
Welcome to InDesign Secrets1m 10s
-
-
December 2020
-
November 2020
-
October 2020
-
September 2020
-
Use one frame, not many4m 37s
-
August 2020
-
July 2020
-
June 2020
-
May 2020
-
Threading filled frames3m 14s
-
Custom page numbering tricks5m 13s
-
November 2012
-
October 2012
-
061 Embedding images7m 44s
-
-
September 2012
-
057 Text wrapping6m 54s
-
-
August 2012
-
July 2012
-
June 2012
-
May 2012
-
April 2012
-
March 2012
-
January 2012
-
April 2020
-
Making speech bubbles3m 32s
-
Working with ligatures5m 9s
-
February 2012
-
December 2011
-
016 Running a script9m 33s
-
November 2011
-
October 2011
-
August 2011
-
September 2011
-
March 2020
-
February 2020
-
Auto-expand acronyms4m 39s
-
-
January 2020
-
December 2019
-
November 2019
-
October 2019
-
409 Copy and paste effects4m 39s
-
-
September 2019
-
408 The master page trick1m 46s
-
August 2019
-
July 2019
-
June 2019
-
May 2019
-
April 2019
-
March 2019
-
February 2019
-
376 Make cast shadows3m 35s
-
-
January 2019
-
November 2018
-
December 2018
-
369 Shared CC Libraries tips5m 15s
-
October 2018
-
360 Find spacing problems4m 50s
-
363 Export all text8m 16s
-
-
August 2018
-
351 Change default fonts5m 51s
-
352 Best default RGB4m 45s
-
-
September 2018
-
July 2018
-
May 2018
-
343 Border spacing fix4m 59s
-
June 2018
-
346 Export to HTML55m 38s
-
April 2018
-
February 2018
-
March 2018
-
January 2018
-
325 Link text frames6m 10s
-
December 2017
-
November 2017
-
September 2017
-
October 2017
-
313 Quick Apply preferences6m 35s
-
August 2017
-
July 2017
-
May 2017
-
290 Work with scripts3m 35s
-
June 2017
-
April 2017
-
286 How to format ellipses5m 39s
-
March 2017
-
281 Share a CC library7m 10s
-
January 2017
-
February 2017
-
December 2016
-
271 Add images to an index4m 39s
-
November 2016
-
September 2016
-
October 2016
-
260 Batch process images7m 33s
-
263 Sync master pages5m 51s
-
-
August 2016
-
July 2016
-
June 2016
-
April 2016
-
May 2016
-
240 Side-by-side tables5m 35s
-
March 2016
-
February 2016
-
228 Setting text at an angle6m 24s
-
December 2015
-
January 2016
-
222 Adding paragraph shading1m 50s
-
October 2015
-
November 2015
-
September 2015
-
July 2015
-
August 2015
-
204 Creating a8m 14s
-
205 Managing scripts5m 38s
-
May 2015
-
189 Placing InDesign files5m 14s
-
-
June 2015
-
193 Printing tracked changes5m 41s
-
-
April 2015
-
186 Making long shadows5m 41s
-
February 2015
-
March 2015
-
January 2015
-
December 2014
-
November 2014
-
October 2014
-
September 2014
-
August 2014
-
July 2014
-
148 Cropping with paste into5m 18s
-
-
June 2014
-
May 2014
-
141 Inserting glyphs6m 42s
-
April 2014
-
March 2014
-
February 2014
-
January 2014
-
December 2013
-
November 2013
-
October 2013
-
September 2013
-
August 2013
-
105 Working with MiniBridge5m 45s
-
106 Customize your QR codes6m 17s
-
July 2013
-
June 2013
-
May 2013
-
April 2013
-
March 2013
-
February 2013
-
December 2012
-
069 Ten uses of the Story Editor11m 39s
-
-
January 2013
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: 174 How to sort text in InDesign