1 Reply Latest reply on Mar 24, 2008 1:45 PM by CTC Imaging

    [JS] (CS3) ParagraphStyles NOT sorted by default

    CTC Imaging Level 1
      Hello everyone,

      I've noticed CS3 Paragraph Styles are not in alphabetical order any longer but in the order they are created. Is there any way to make them sorted by name by default at the app.level? A lot of my script checking available styles are based on the order! Or do I have to order the list everytime?

      document.paragraphStyles.sort(function(a,b){return a.name-b.name});