Can you sort indesign pages alphabetically?

I have a document with over 200 page and I want to sort the pages alpahetically after the heading on every page.The headings have one paragrah style. The document is singel pages, but there is two text frames on ever page. Many pages have also the same heading, so I hope to sort them in the  same order in which the document is now.
If you see the images under, I want to sort the pages alphabetically after the "heading" in bold to the right (txt:Best Buys Natural Wines)
Is it possible with a script or something else?

Ok This is what you were after.
This assumes that you use a Paragraph style for your header AND THERE IS ONLY ONE HEADER ON EACH PAGE WHICH IS ONLY ONE PARAGRAPH LONG
// Script by Trevor to sort Pages according to alphabetical order of Page Headers
// http://forums.adobe.com/thread/1082984?tstart=0
var doc =  app.documents[0], myHeaders, l;
app.changeGrepPreferences = app.findGrepPreferences = null;
app.findGrepPreferences.appliedParagraphStyle = "My Header";
// Change above to the name of header style
myHeaders = doc.findGrep();
for (n=0; n < myHeaders.length-1; n++) $.writeln([myHeaders[n].contents]);
myHeaders.sort (function (a,b) {if (a.contents.toLowerCase() > b.contents.toLowerCase())  return 1 else return -1})
l = myHeaders.length;
while (l--) myHeaders[l].parentTextFrames[0].parentPage.move (LocationOptions.AT_BEGINNING);

Similar Messages

  • HT2486 in address book can you sort first names alphabetically?

    In address book, can you sort first names alphabetically?

    Open "Contacts" app, and in the top of the screen Menu Bar for the app click on "Card" and then select from the dropdown list "Show First Name Before Last".
    Hope this helps

  • Can you sort an outline alphabetically

    Hello Does any one know if you can you sort an outline in pages alphabetically? I could do it using word. I am using one of those templets. Thank you.

    Ok This is what you were after.
    This assumes that you use a Paragraph style for your header AND THERE IS ONLY ONE HEADER ON EACH PAGE WHICH IS ONLY ONE PARAGRAPH LONG
    // Script by Trevor to sort Pages according to alphabetical order of Page Headers
    // http://forums.adobe.com/thread/1082984?tstart=0
    var doc =  app.documents[0], myHeaders, l;
    app.changeGrepPreferences = app.findGrepPreferences = null;
    app.findGrepPreferences.appliedParagraphStyle = "My Header";
    // Change above to the name of header style
    myHeaders = doc.findGrep();
    for (n=0; n < myHeaders.length-1; n++) $.writeln([myHeaders[n].contents]);
    myHeaders.sort (function (a,b) {if (a.contents.toLowerCase() > b.contents.toLowerCase())  return 1 else return -1})
    l = myHeaders.length;
    while (l--) myHeaders[l].parentTextFrames[0].parentPage.move (LocationOptions.AT_BEGINNING);

  • In iTunes, podcasts are sorted in the library alphabetically. In Version 1.2.1, there is no order and there are duplicates.  Can you sort the library? and how do you remove duplicates of the same podcast (not episode)?

    In iTunes podcasts were sorted in the library alphabetically.  In Version 1.2.1, there is no ability to sort and podcasts (not episodes) are duplicated.  Can you sort the Podcasts in the library section? How do you remove or consolidate duplicates?

    In iTunes podcasts were sorted in the library alphabetically.  In Version 1.2.1, there is no ability to sort and podcasts (not episodes) are duplicated.  Can you sort the Podcasts in the library section? How do you remove or consolidate duplicates?

  • Can you sort ibookshelf books by collections and list all of the books in each collection?

    can you sort ibookshelf books by collections and list all of the books in each collection?

    The collection changes a little by the criteria you use to view the books, and you can view them by Title, Author, and Category. So, yes, you can.
    The default view is Book view. On the upper right part of the page, you'll see four white blocks - that's the icon for book view. The icon on the right has three white lines; that's where you find Title, Author, and Category view. You can't create folders in any view.

  • Can you open with Pages documents that were created in a 2004 version of Microsoft word for Mac?

    Can you open in Pages documents that were created in a 2004 version of Microsoft Word for Mac?

    Pages '09 will open .doc files from Word 2004. The Mac OS is not what is in question. Pages '09 opens Word 2004 documents and if the same version of Pages will run in Lion and in Mountain Lion ..... Thats all that matters.
    I trust you were using MS Office 2004 and would now like to buy Pages?

  • How can you sort an album that was released in 2007 but has 80s music on

    I have v8 of iTunes, almost completed all my tagging how I want it in iTunes for all my music
    I have a query though, I have a 80s, 90s smart playlist.
    I have recently got an album that was released in 2007, so the year in my library is 2007, however all the music on that album is from the 80s.
    So can you tag with 2 years, ie Album release date and song release (original date) or can you sort the album to show its songs from the 80s.
    Someone must have the same issue, especially from compilation albums
    please help
    cheers

    ahh, was hoping it may have had a "overall" year or album year release date.
    Man that means I gotta tag a lot of my music with the correct year now then, as the compilation albums I got all tagged form web with year released
    Whats the best way to get the year of the songs then please? is there an easy way? Ive got a lot of songs to do now
    cheers

  • How can you sort photos by descending date in Photos?

    how can you sort photos by descending date in Photos?

    There is no way to do that.
    http://www.apple.com/feedback/macosx.html
    Let Apple know your requirements.

  • I will be creating an online survey. Is each page considered a form or can you have multiple pages?

    I will be creating a multi-page survey. Is each page of the survey considered a form or can you have numerous pages in one form?

    Donna,
    A form can have more than one page. To introduce a new page in your form, click on the "New Page" icon highlighted in the image below.
    The image below shows the result of adding a "New Page" element, with a second text field added to the second page.
    Regards,
    Brian

  • Can you enable Numbers, Pages, or Keynote to automatically save every....

    Can you enable Numbers, Pages, or Keynote to automatically save every ...(desired time intervals) like Microsoft Office does?

    Look at:
    http://discussions.apple.com/thread.jspa?messageID=8759406
    You will get a link to my Applescript which not only autosaves but keep consecutive datestamped copies so, if the last saved copy appears to be a corrupted one, you may get the preceeding one.
    Yvan KOENIG (from FRANCE jeudi 14 mai 2009 11:39:26)

  • HT4168 Can you do web pages with this application.

    Can you do web pages in the PAGE application?

    Sadie,
    No, Pages doesn't produce web page code.
    Jerry

  • How can you delete a Pages document from your Ipad but keep it on your MAC?

    How can you delete a Pages document from your Ipad but keep it on your MAC?

    You will need to keep them in folder on your hard drive somewhere other than in iTunes or they will be deleted from iTunes if you delete them from the device. I have a folder on my Mac called iPad Pages Documents - very original don't you think!
    Here is the support article that explains it all.
    http://support.apple.com/kb/HT4094

  • Can you sort tasks in Outlook MAC 2011 by alphabetically by date?

    I can either sort by date or sort alphabetically....i want to be able to sort by date in alphabetical order - any suggestions?

    Hi Sophie,
    It would be much better if you put this query on the Outlook Mac community support:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011
    By the way, sorting tasks in Outlook Mac 2011 is too simple, just click on
    “Tasks” from the bottom of “Navigation Pane” and accomplish sorting according the requirement.
    To learn more how to sort tasks in Outlook Mac 2011:
    http://office.microsoft.com/en-in/mac-outlook-help/customize-the-tasks-list-HA102928291.aspx
    Note: Improve community discussions by marking the answers helpful.
    Thanks
    Clark Kent

  • Can you sort layers by file size?

    I'm working on a catalog, not my own, that was set up with all the layout done in Photoshop then placed in ID for copy and a few rasters (barcodes, mostly) to be placed in ID.  Without getting into a conversation about how this is actually supposed to be accomplished, I have run into a problem.
    The .psd is hitting the 2GB limit for file size and can only be saved as a .psb.  .psb can not be placed in ID.
    I would like to reduce the size of the .psd.  Is there a way to figure out where the bloat is?  I know that there are some fat smart objects that could be rasterized, but I don't know which ones are the most chubby.  Can I sort layers by file size or determine the size of a layer without drilling into every smart object?
    Thanks!

    I don't know of a way offhand except to export the layers as files and observe the file sizes.
    Photoshop Help | Saving images   File menu > Scripts > Export Layers to Files.
    Maybe even faster would be to save the PSD as a Layered tiff. Tiffs have an upper limit of 4 GB.
    "Save as" would allow you to keep the PSD as a backup and InDesign should recognize tiffs.
    Gene

  • Can you sort in a table?

    I am  working on a massive table of all files on my computer to "clean things up." Can I sort in a table in InDesign (CS4) OR Should I have done this in Excel??? OR is it easy enough to export all info without too much fuss to Excel if sorting in a table is not an option in InDesign.
    Thank you.

    You might want to have a look at this: http://www.dtptools.com/product.asp?id=atid
    Bob

Maybe you are looking for