Is it possible to sort textframes in alphabetical order?

Hi,
I have a large number of separate text frames with text startsing with a number.
Is it possible to sort the text frames i alphabetical / numeric order either in y or z?
Scripts available that I've found sort paragraphs, but since my text frames contains several paragraphs that's not an option.
InDesign CS5, MacOS X.
So, help much appreciated.
/K

That took me a few minutes
Sorting 'on contents' is easy, but then the text order inside the frames as set would be correct, but not the order of the frames themselves. The top frame on your screen may not be "the first one" according to the order of creation.
So you also have to re-sort the text frame location, top to bottom and left to right. I do this by first sorting the frames into the correct location, so the "first" frame is actually the first one on the page, then the next one etc.
Then I sort the contents on the first word and move the frames around into their sorted order.
I do this quick 'n dirty: by moving their geometric bounds around. Thus it's possible I place a large text into a small 'original' frame (actually I don't move the text around) and it might get overset. But this way nothing else on the screen changes.
If you want the frames aligned and spaced out as in your "below" image, you could do that before running my script.
Is this what you were looking for?
list = app.selection;
org_order = [];
for (i=0; i<list.length; i++)
org_order[i] = list[i].geometricBounds;
org_order.sort (function(a,b) {
if (a[0] == b[0]) return a[1] - b[1];
return a[0] - b[0];
list.sort ( function(a, b) {
return parseInt(a.texts[0].words[0].contents) - parseInt(b.texts[0].words[0].contents);
for (i=0; i<org_order.length; i++)
list[i].geometricBounds = org_order[i];

Similar Messages

  • Is it possible to sort dimension values in order different from alphabetic?

    Is it possible to sort dimension values in order different from alphabetic. &#1058;&#1086; use this sorting in BI Beans. In 10g r2 with awm 10.2.0.2. I try to add attribute like it was show in this forum, but nothing changes.

    Could be usefull if you use java AW api... here's the java code I'm using to create the sort_order attribute
    Dimension myDim = yourAW.findDimension("DIMNAME");
    Attribute myAttr = myDim.createAttribute();
    myAttr.setName("freename");
    myAttr.setClassification("DEFAULT_ORDER");
    myAttr.setIsDefaultOrder(true); // TO NOT FORGET
    myAttr.setDataType("INTEGER");
    myAttr.Create(AWConnection);
    globalAW.Commit(AWConnection);
    It creates a variable - integer - that defines the default order of the dim values. I'm viewing it with AWM and BIBeans. The order is respected with Level-based and Value-based hierarchy but my hierarchies are really simple and unique for all the dimensions.
    BUT !!!! Be carefull, if you don't have any hierarchy in your dimension, you must have at least one level - the default NONE level. Otherwise, it won't work ???

  • Is it possible to sort a playlist alphabetically...

    Is it possible to sort a PLAYLIST or ARTIST songlist alphabetically in itunes and retain that order on ipod (Classic)? Some of my playlists or artist's songlists have literally hundreds of songs and it is cumbersome to try to locate a particular song when using the ipod. I realize that the songs are alphabetized under the song category but I would like them alphabetized by song in a particular playlist or artist songlist for ease of access. Is this possible and, if so, how do I do it? Thanks in advance

    Anyone? I agree with @sully1961 – I have a playlist for "4 & 5 star" tracks and sometimes would like to listen to a specific track followed by other 4 & 5 star rated tracks. As it is now, they sort by album and I can never find what I'm looking for. I swear in the past the sort order was maintained from the sort order in iTunes – am I mistaken?

  • Sort Podcasts By Alphabetical Order in Main Menu

    How do you sort the Main Menu of the Podcasts app in alphabetical order?  Mine only sorts the podcasts in the order that I subscribed to them, from newest to oldest.  Is there any way to sorth them alphabetically other than manually?
    I have looked at the options in the app and in the Settings menu, but there are not choices availalbe. Any ideas?  Thanks.

    In list view - click the "Album" heading to sort in ascending or descending order
    In Album view - press Cmd+j for view options. Select Sort by: Title

  • Is there a way to sort songs into alphabetical order under artist as opposed to being grouped by album?

    Hi all.
    After a long overdue update to my ipod touch I've noticed that when I select an artist my songs are now grouped by album as opposed to alphabetically. Wondering if its possible to change this as I cant find any options or information on this myself.
    Thanks.

    If you find the music sorting order as annoying as I think most people do, let apple know at:
    http://www.apple.com/feedback/

  • Sorting Albums in alphabetic order on iPad

    I set up a set of Albums in iPhotos on my iMac. Later I added a new album and it went to the bottom of the list of albums on the left side of screen. I physically dragged that last album up among the other albums to put it in alpha order. All well and good.
    Problem is when I sync my iPad, that last album doses not appear in alpha order
    ; it stays at bottom of group.
    Please help me put this and future albums in alpha order. Thanks

    My iPad 2 and iPhone 4 are on iOS 6.0.1 (was on iTunes 10.7, recently updated to 11) and most of my smart lists are sorted as in iTunes.  The ones that don't seem to be sorted correctly are those which are limited in size by number of songs (e.g. "Limit to 25 songs").  Playlists that are limited by capacity (e.g. "Limit to 500 MB") seem to have the same sort order as in iTunes.
    I'm not sure if this matches your conditions, but if you have not done so already then try adding either of the criteria:
    "Playlist is Music" (which is the general Music category, which can serve as a playlist name), or
    "Media Kind is Music"
    See if either of those help you, and be sure to re-save the playlist's sort order in iTunes before syncing your iPad.

  • Photos for iOS: How can i sort all of my albums automatically in alphabetical order

    Hey there,
    first off, why isn't there a a community for the new Photos app?
    Anyway, here is my problem:
    How can i sort my albums on the new Photos app on iOS?
    I think it's not possible at the moment.
    I am using the iCloud Photo library and uploadet all of my 15.000 photos from the last 15 years.
    And because of that, i now have many many albums on Photos now.
    Overall i love the new app and i love the iCloud Photo library, but i cannot sort my albums on the iOS app automatically in alphabetical order.
    I can sort albums manual, but who wants that, when you have so many of them???
    I have Photos on my Mac too and there i am able to do sort them in alphabetical order. But it is not adopted to iOS or the iCloud Web-App.
    Because of that, i have a complete picture chaos on my iPhone and when i am looking for this one pic in that one album it takes me forever to find it.
    So please Apple, fix this and we all can live happily ever after!
    Thank you!

    Moments in Photo are the new Events.  T
    here's a way to simulate events in Photos.
    When the library was first migrated there was a folder created titled iPhoto Events and all migrated iPhoto Events are represented by an album in the folder. To open the sidebar if it's not open use the Option+Command+S key combination.
    When new photos are imported into the Photos library go to the Last Import smart album, select all the photos and use the File ➙ New Album menu option or use the key combination Command+N.  Name it as desired.  It will appear just above the iPhoto Events folder where you can drag it into the iPhoto Events folder
    When you click on the iPhoto Events folder you'll get a simulated iPhoto Events window showing all of the albums.
    The downside to this simulation is that the Album/Events can only be sorted automatically by Title while viewed in the Folder in the main window or in the sidebar. But they can be sorted manually.
    Ask Apple for more sorting options in Photos via https://www.apple.com/feedback/photos.html.

  • HT4191 how can i sort my iphone notes in alphabetical order?

    I synced my MS Outlook notes through iTunes onto my iPhone 4S.  The notes were in alphabetical order on my computer, but now they are in creation date order on the iPhone, making them almost useless (the notes contain subject-based information).  Is there any way I can sort them into alphabetical order?  Settings does not seem to have this ability.  Alternatively, is there an app I can get that will offer sort options/functionality for my notes on the iPhone?  Thank you all!

    I played with "Reminders" app. It allows sorting (as you do for aligning cities in your weather app).  And u have the option to choose a time to be notified/reminded to view it. Reminders have titles, then u can list related items under ea title as sub topics; these subs can later be moved to a NEW "title" if you need to subdivide (e.g., if a title is "To Do" but your list gets long and you want to break down the To Do list into "Shop" &amp; "Chores"). This is done by tapping "details" then "list" when you're on the To Do page.

  • Organize Table of Contents by alphabetical order in Pages

    Hi,
    Is it possible to organize a table of contents by alphabetical order in pages?
    Thanks!

    Pages inserts a Table of Contents in page order, that is what a T.O.C. is.
    You want an Index.
    Export the T.O.C. to Text.
    Open that text file in a Word Processor that allows sorting* and sort it into Alphabetical order.
    Copy that sorted Index back into Pages.
    Peter
    * Pages will do this if you install WordService [free] from DevonTechnologies

  • Opening files--files not in alphabetical order.

    Suddenly when opening files, the files are not sorted out in alphabetical order; I don't have a clue how this happened.

    Did you check that the Name column in the file picker has a arrow to indicate sorting by name?

  • Bookmarks, Putting them in alphabetical order

    Hi,
    Sorry if this has been done before, How do you sort bookmarks by alphabetical order in your popular folder, I have tranfered them from IE7 ok but have drawn a blank. Also how would i copy all my bookmarks into this folder.
    Many thanks if you can help with this.

    not sure how to put in order but you can click on the open book icon to the right under the arrow and drag your imported IE favorite to the book marks menu or any other folder in there and rename it what you like, but as for order i haven't yet figured this out.

  • Is it possible to sort text/imessages in alphabetical order??

    Is it possible to sort text/iMessages into alphabetical order instead of just by date??  Would be great to have the option to sort by different filters or even to initiate a search of a particular subject/word or persons name.

    Didnt think so.  APPLE!!!  Would be good to have please!!!

  • Is it possible to sort Mac Mail Rules into alphabetical order?  I have in excess of 50 rules and everytime I want to add to a rule, such as "delete incoming" I have to go through the entire list to find it.

    Is it possible to sort Mac Mail Rules into alphabetical order?  I have in excess of 50 rules and everytime I want to add or amend a rule, such as "delete incoming" I have to go through the entire list to find it.  I have tried clicking on the heading "Description" but it does not sort.  Any assistance would be greatly appreciated

    Hi,
    According to your description, my understanding is that use CMAK to configure split tunneling on VPN clients, traffic to specified devices can be routed via their own default gateway.
    If the manually added route entries all have default metric and interface, clients will select one by the default routing rule, can’t select one of them according to clients’ own conditions. So, I am afraid that CMAK can’t implement the function which you need.
    A blog described about How to configure split tunneling on VPN clients using CMAK, for your reference:
    http://blogs.technet.com/b/rrasblog/archive/2007/06/11/split-tunnelling-using-cmak.aspx
    Best Regards,
    Eve Wang 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Is it possible to sort by multiple fields?

    Is it possible to sort the music library by multiple fields in a prioritised order? For example, I would like to sort by the following columns, in the following order:
    Album Artist
    Album
    Track Number
    for some reason I can't seem to do this, sorting by Album artist alone is not working for me, as some CD's I've imported have featured artists and this breaksup the listing order.
    Thanks

    Thanks Thomas
    Unfortunately, this solution did not work for me, cover flow still shows multiple instances of the same artwork for various groups of tracks from the same album.
    The thing I don't understand is why sorting by the "sort album artist" field does not group all the tracks from an album together.
    My specific example (I still can't get a screenshot posted):
    I have two Gwen Stefani albums, both ripped from CD (not imported from the itunes store). both albums have a majority of track where Gwen is the only artist and two or three track with featured artists. I have filled the "album artist" and "sort album artist" tags to all read Gwen Stefani, however, if I sort by either of these columns (in cover flow mode), what I get is this:
    all the tracks from one ablum where Gwen Stefani is the artist
    then all the tracks from the other album where Gwen Stefani is the artist
    then (in alphabetical order by featured artist) the remaining tracks from both albums - ie, the albums are mixed up
    for each group of track I see an cover flow art work.
    I should say that I have turned off the compilation tag on all of my albums because this ends up saving the file in a compilation folder, not in the artist folder on my hard drive - but it doesn't make a difference either way to the way I see the files sorted in itunes.
    It's really frustrating!

  • RE: Is it possible to sort tags?

    This is a continuation of the Support Forum question titled: “Is it possible to sort tags?” located at:
    https://support.mozilla.org/en-US/questions/963133?esab=a&as=s&r=2&page=1
    If this new topic has to be posed as a new question the following applies.
    If you visit the above link you will learn how convoluted were the solutions provided to non-programmers.
    I CERTAINLY EXPECTED THAT BY NOW there would have been an effort to address the Tag sorting issue, since there have been a number of upgrades since this question was first posted. Tag sorting provides a much more robust browser many more would choose to use. It would also attract more users concerned about the control on our liberties if supplied with a browser that truly has more powerful capabilities to garner and access information.
    One of the points the Firefox Team uses to attract more to use it is the protection it gives from snoops. You’ve got to ask yourself how much protection that might be if developers can’t do something simple (for talented programmers) like provide tag sorting. That comment is from, basically, a non-programmer, so I have no idea how much code would have to be written to bring this about. I suspect they don’t either and possibly fear the effort might turn out to be much greater than it really is.
    It’s been a LONG time since I used Internet Explorer by Microsoft. What brought me to Firefox was their mission statement to provide access free of its own brand of commercialism and free usage of the Internet, which also implied an effort to protect privacy. For the same reasoning I would not use Google, after reports of their cooperation with government heads in China. Reports have also surfaced that Microsoft has provided a back-door to the NSA for their Internet Search engine, all of this in total disregard to the US Constitution’s 4th Amendment requiring a warrant from a court to prevent unreasonable searches and seizures. I would, however, wish that Firefox would OPENLY adhere to the Bill of Rights in their Privacy Policy, which is not stated in so many words. Many would say, “I don’t have anything to hide, so I don’t care.” Apparently they are unaware how dirty politics and politicians can be. This is the reason why a viable alternative, such as Firefox, is so important.
    If you wish to learn more about just one individual who has dedicated his life in service to this country in terms of providing liberty to the widest possible number along with a promise to use the wealth he has built throughout his life (except for the necessity of living in exile), visit the following:
    http://wantarevelations.com/wanta-black-swan-white-hat/
    This is just one of the links that would be a lot easier to access, were it possible to sort Tags.
    Is this off-topic? Not really.

    HI MozillaFirefoxNewbie,
    Thank you for your question, even though this is not off topic, the points made would have a better audience in a feature proposal in Bugzilla. Please check out the features and description here:
    [https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=Bookmarks%20%26%20History]
    As mentioned in the previously posted thread, there was a work around provided by [https://support.mozilla.org/en-US/questions/963133#answer-462676 jscher] that sounded functional.
    However if there is no extension desired, I encourage to proved the steps and objective of the feature.
    If you open up the Bookmark Library however and click the drop down of 'Tags', they are in alphabetical order.
    Have you tried this built into Firefox?
    Cheers

Maybe you are looking for