JS Library sorting order Help

Hello

I use the code below to change the sort order of the assets within my library (via script). After the script has completed, I have no error message but nothing happening... the order on the library panel always the same. Any suggestion?

I test with an empty document (1 page) and a library open with some assets.

myDocument var = app.activeDocument;
myLibrary var = app.libraries.itemByName ("LibraryName.indl");
var myLibraryPanel = myLibrary.associatedPanel;
myLibraryPanel.sortOrder.BY_TYPE;
myLibraryPanel.select (myLibrary.assets.item (0));

Thank you

This line

myLibraryPanel.sortOrder.BY_TYPE;

does nothing. You probably meant

myLibraryPanel.sortOrder = SortAssets.BY_TYPE;

Tags: InDesign

Similar Questions

  • Photo library - sort order of the change for "organizing a month."

    Is it possible to change the sort order when viewing the pictures library, arranged by month? When I put the menu "arrange by" to "month" in the library pane, files in my library of images are correctly grouped by month, but in reverse chronological order. The most recent month is displayed first. For example, September 2010, August 2010, July 2010,..., etc. I would like for this switch to chronological order: January 2010, February 2010, March 2010, etc. The option "sort by" is grayed out in the menu. I can value the sort order ascending or descending if the library is organized by day, but not when arranged by month. Thank you.

    Hello

    I searched all the documentation and it doesn't seem to be any way to reverse this order, when the month is checked?

    Kind regards

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • Sort order of library

    I use (December/2005/17) as my sort order by default in the lightroom library. Is it possible to change the sort order to January, February, March... the first months instead of alphabetical order (April, August...)? Thank you

    If you talk about the list in the left panel of records, I think the only sort order is alphanumeric. OTOH, in each folder in the display of the grid, there are lots of ways to sort the images.

  • Change the sort order on film

    For some reason any my sort order in my film is mixed up.  It allows to sort by oldest date to last date.  Is there a way to change this?

    Thanks for any help in advance!

    Scott

    Switch to grid mode in the library module. If the toolbar under the grid does not appear, type "T". When you have a toolbar, make sure that it has a tool of "Spell" on this subject. (If she is not there, click the triangle at the right end of the toolbar and choose "Sort" from the list).

    Now click on the text to the right of "sort:" on the toolbar, then choose "capture time. Make sure the a / z has 'a' high on, or your fate will be in the reverse order.

    HAL

  • Sort order of dates

    With the latest updates for VISTA 64 Home Premium, Service Pack 1, when I try to sort the files in chronological order, it sorts by month (1-12), then day (1-31), THEN year, so that on 01-02-08 shows as more recent than 01/01/09 and 01/03/09 is less recent of the foregoing. Y at - it a patch or fix? It is majorly annoying.  As far as I know, I have all the current patches and updates. Sort order must be the YEAR, MONTH, DAY, even if the screen is in the format DAY, MONTH, YEAR.  Help, please.

    M.Nelder

    Hello M.Nelder,

    If you have your order of sorting by type it will sort the date depending on the file first, then by Date.

    When you try to sort by modified Date, try this:

    Mouse over the modified Date header in order to see the menu drop down.

    Select the drop-down arrow, and then select group.

    You should now see all group by time period regardless of the type of file.

  • Windows Mail seems to change the sort order of the mail every now and then.

    Windows Mail seems to change the sort order of the mail every now and then.  I want that it in the order received, desending and back to this sometimes.

    Hi rondebmar,

    You can check out the following link and try the suggestions posted by t-4-2 on Thursday, January 7, 2010 08:57 PMand check if this may help.

    http://social.answers.Microsoft.com/forums/en-us/vistanetworking/thread/d9aa1297-1124-43e5-b463-5441f3922388

    For more information, please visit the following links:

    http://Windows.Microsoft.com/en-us/Windows-Vista/view-e-mail-messages-in-Windows-Mail

    http://Windows.Microsoft.com/en-us/Windows-Vista/check-for-new-e-mail

    Hope this information is useful.

    Boumediene. K.
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • SQL sort order?

    When installing UCCE I use the ICMDBA to create the base of data but get this error:

    "The sorting order of SQL Server on this computer is not binary. You can't go any further.

    Anyone know how you can change the SQL sort order?

    Hello

    To change the SQL Server "Binary order", you will need to reinstall SQL Server and select 'Custom' config Binary order (Latin1_General) for installation.

    Follow the instructions in this link:

    http://www.Cisco.com/application/PDF/en/us/guest/products/ps1001/c1225/ccmigration_09186a00804d72f9.PDF

    See Chapter 10. This installation of SQL procedure is valid for all IPCC Enterprise versions in SQL Server 2000.

    Hope this helps,

    Juan Luis

  • Synchronization of a custom sort order Mobile on desktop?

    I did extensive research on this, and that it is always possible to miss something, I can't find anything specific about knowledge if a custom from mobile sort order can be synchronized to the source office collection. Does anyone have experience with this, or a pointer to some clarifying Info? Synchronize my changes per image, so I know communication happening. I don't know if there is a hidden menu item or a checkbox of some sort that I'm missing. The mobile and desktop are in mode 'command. Maybe it's a one-way street?

    Thank you.

    Hi Lloyd,

    These discussions could help as the similar info was shared:

    I can't seem to sort custom LR mobile

    Lightroom Mobile do not sync correctly the order custom. I'm doing something wrong or is this a bug?

    Let me know if that helps!

    Kind regards

    Sheena

  • Lightroom Mobile does not recognize my custom sort order

    I can't find a way to get the Mobile with Lightroom app on my iPad to recognize the custom sort order in place for collection on my desk. I'm on the latest version of Lightroom and Lightroom Mobile. The only sorting option that appears in LR mobile is by capture time. The custom sort order is available for collection on the Abobe website, but not on the mobile application.

    You can change the type of sort when you touch the Capture plate. Tab so on time "capture" - label and you will see other sorting options as 'Date modified', 'command' etc.

    Hope that helps.

    -guido

  • Unrecognized sort order ' 1 |

    Of Dgraph updatelog
    ERROR 29/11/12 20:33:49.837 UTC (1354221229837) sort order not recognized DGRAPH {dgraph} ' 1: '
    Any help here? There is no reference to this in the documentation.

    Sort orders should be listed in the dgraph as reqlog |, and the order can be 0 or 1. Looks like you have an error of configuration somewhere. If it certainly only happens after a partial update, then check:
    (1) to - sort, it is set correctly?  (Not sure if it uses partial updates, he can do)
    (2) any cache warming script that runs as part of the script PartialUpdate
    (3) check your dgraph.reqlog at the point where the error occurs, the application will be shown here and can provide more information about the cause
    (4) do a grep on the application of short for ' |. ' 1"and see if that has somewhere

    Michael

  • Enable sorting (Order by) in the table tree ADF

    Hello

    How can I sort ADF tree using a temporary Variable... ?
    'Name' is a temporary variable in my VO... I want to sort the ADF tree with the attribute "Name"...

    Thank you
    Swathi

    Hello

    check this hope it helps
    http://Hazem-ADF-tips.blogspot.in/2012/06/define-default-sorting-order-of-ADF.html

    Concerning

  • Sort order pre-computed not maintained when sorting on other properties

    Hello

    We use MDEX version 6.2.1
    I put a digdx flag as below, in general to maintain order, if no sorting is selected by the user, product will be displayed in alphabetical order of display_Name.
    < arg - > sort < / arg >
    display_Name < arg > | CSA < / arg >

    We have two more properties enabled to sort, namely the Vintage and price (user can choose to screen and sort the results), but I'm not defining all the indicators of digdx for these two, but their enequery updated nuer setNavActiveSortKeys (ERecSortKeyList)
    1. by default search results are coming in alphabetical order of display_Name - works fine as expected
    2. where a sort of user on Vintage - the results are sorted by Vintage as expected, however two or more records with the same value vintage (links on the Vintage) do not come in alphabetical order of the display_Name

    Surprised by this behavior, because when I used digdx flag his defining clearly records alphabetically on display_Name on index, but why this order is not maintained when the results are tied to vintage, completely distraught

    Can someone help out me, am I missing something here or BUGs you guys together?

    Thank you
    Dev

    Published by: 928681 on May 31, 2012 21:45

    Published by: 928681 on May 31, 2012 21:51

    Hi Dev,

    When the request is made to sort explicitly on the 'Vintage', it will not automatically cascade to use the "display_Name" like breaking to sort the records with the same value of "Vintage". You can observe that the setNavActiveSortKeys method accepts an ERecSortKeyList. This ERecSortKeyList allows you to create a list of the properties and dimensions for sorting. If you want to sort by Vintage first, followed by display_Name, then 'Add' ERecSortKey 'Vintage' first, followed of an ERecSortKey corresponding to 'display_Name '. This will update the sort order to meet your needs.

    More information on this method found in the documents of the API here: http://docs.oracle.com/cd/E28910_01/PresentationAPI.622/apidoc/javadoc/navigation/com/endeca/navigation/ERecSortKeyList.html

    Kind regards

    Craig

  • Any way to restore last manual sort order or prevent to be overwritten accidentally?

    Help!

    I'm constantly accidentally overwrite created carefully manually sort order (sometimes hours but more often months of accumulated work) in folders with file numbering up to 1,000, when I have, however, in short, switch to another sort order (size, date modified etc.) to check something, forget immediately that I am in a different sort order and without thinking (actually, I guess I think about a lot of other things) drag a file to another position, it destroyed immediately after hand sorting, I established, overwhelming with this new hands-on inadvertently.

    I tried CommandZ (modif cancel) but that only cancels my latest rating or labelling, I rushed to force quit bridge through the montior activity in the hope I will catch him before his crushed, but obviously I'm not as fast as a computer, and I don't think it has always worked.

    Is there a way or any script that someone wrote to officially record a manual sort order? Is there something that I missed in an attempt to restore? Has anyone, foiled repeatedly by the present, writes something that could give a warning and I will confirm say for example, if I tried to drag or move a file while in a different sort order (this seems to be something that must have existed the minute has been given the opportunity to create an organisation manual). Anyone would be willing to?

    Seriously, forget me almost everytime won't change and more dilapidated, it has even happened when I didn't spend anything that clumsy momentarily while in a different sort order. I think that most people could forget because that (in the context of the computer), we are conditioned to expect one caveat if something that we just created is about to be overwritten or discarded, and since there is no option to save a manual ranking officially we just created.

    Also, if it was in the real world, moving a single file would not overhaul everything on your desktop. If I had the ability to save a manual organization officially I WON'T forget to do and would use, I wanted one every time I spent some time rearrange files. Knowing how easy, it is every hour (much less months and years of cumulative work) for organization's work can be accidentally lost makes working within unpleasantly anxious bridge.

    I am literally ready to do anything , including the installation of some scripts from 3rd party summary (but honestly I have no idea what that means or how to do it). Extentively, I use and rely heavily on this feature, so it is the heel of a pretty serious Achilles. It's like watching your team meticulously built collapse of the House of cards with a sigh imprudent, but innocent, or as having the equivalent of a cat not even charming dance on your keyboard for a live concert, etc etc...

    Also it is not usually appropriate, given the context, batch rename all to preserve a control sequence numbers w manual, etc. Often the names of files are significantly (but necessarily, to evoke significant differences) since a long time already and when I have to rearrange things in the future would be obliged to do that every time, etc., etc., for even more heavy filenames which had no background information at the beginning. I'm looking for a way to make this function (manual sort order), well, more functional, safe and stable, workarounds I considered as cause too many additional problems.

    I thank in advance for any help, you may be able to offer, and as this is my first attempt to use forums that I vivre living on a boat without a regular net access, appreciate all corrections forum etiquette and excuses for misspellings, Dyslexic and spell check doesn't seem to work in this interface. next time will change in program external wordprocessing beforehand,

    Li ' l mc szpf

    P.S. I'm on a mac w 27 "CS4 Design Premium, w up to the minute BONES (10.6.8) and the Adobe software updates installed recently (I don't often move the monster but this week has been housesitting w net access, so she had all recommended shots and vaccinations...)

    PPS I know that most of you all could run the newest and later of everything, but I'm fairly certain that it is still a problem in recent versions, as has happened to me at school where all Macs are running cs5. But if it is remedied somehow in cs6 update suite together just to fix this a Bridge. I tried a lot of research and found nothing relevant or does not bother the considerable expertise and resources of an official forum, was extremely reluctant to ask (dreaded is broken in for pinout unintentionally etiquette forum), but it truly is the bane of my existence of significant bridge, so was willing to risk the imaginary censure and opprobrium...

    Post edited by: PECourtejoie

    It of a good question, for it requires two functions and a reboot of the bridge all done automagically

    Copy and paste the script in ExtendScript Toolkit
    It is installed with Photoshop and you will find: -.
    PC: C:\Program Files\Adobe\Adobe utility
    MAC: /Applications/Utilities/Adobe utilities

    Starting point
    PC: Edition - Preferences - Startup Scripts
    Mac: Startup menu - Preferences - Adobe Bridge Scripts

    At the bottom, click on the 'reveal' button it will open the folder where the script should be saved.

    Close and restart Bridge.
    Accept the new script.

    To use:
    Tools - backup sort manually
    It backs up the hidden file manually sort. BridgeSort to. BridgeSortSave

    Tools - restore manually sort
    This copierait the. BridgeSortSave back to BridgeSort and will close and restart of the bridge so that the manual sorting is restored.

    if( BridgeTalk.appName == "bridge" ) {
    var backUpManSort = new MenuElement( "command","Backup Manual Sort", "at the end of Tools" , "backupms" );
    var RestoreManSort = new MenuElement( "command","Restore Manual Sort", "at the end of Tools" , "restorems" );
    }
    backUpManSort.onSelect = function () {
    var fileSort = new File(app.document.presentationPath +"/.BridgeSort");
    var fileSave = new File(app.document.presentationPath +"/.BridgeSortSave");
    if(fileSave.exists) fileSave.remove();
    fileSort.copy(fileSave);
    fileSave.hidden=true;
    }
    RestoreManSort.onSelect = function () {
    var fileSort = new File(app.document.presentationPath +"/.BridgeSort");
    var fileSave = new File(app.document.presentationPath +"/.BridgeSortSave");
     if(!fileSave.exists){
     alert("No backup file exists");
     return;
     }
    app.document.sorts = [{ type:"string",name:"document-kind", reverse:false }];
    if(fileSort.exists) fileSort.remove();
    fileSave.copy(fileSort);
    fileSort.hidden=true;
    app.document.chooseMenuItem("mondo/command/new");
    app.documents[0].close();
    app.document.sorts = [{ name:"user",type:"date", reverse:false }];
    }
    

    I hope it works for you.

  • Why cannot avoid the sort ORDER BY STOPKEY function index

     
    
    SQL> alter session set nls_language=american;
    
    Session altered.
    
    SQL> create table test_sort(name,object_name) as select 'select',object_name from 
      2  dba_objects;
    
    Table created.
    
    SQL> create index i_test_sort_1 on test_sort(substr(name,0,3),object_name);
    
    Index created.
    
    SQL> exec dbms_stats.gather_table_stats(user,'TEST_SORT');
    
    PL/SQL procedure successfully completed.
    
    SQL> set autot trace
    SQL> select * from (select * from test_sort where substr(name,0,3)='sel' order by 
      2  object_name) where rownum<11;
    
    10 rows selected.
    
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 4202652051
    
    --------------------------------------------------------------------------------
    -------------
    
    | Id  | Operation               | Name      | Rows  | Bytes |TempSpc| Cost (%CPU
    )| Time     |
    
    --------------------------------------------------------------------------------
    -------------
    
    |   0 | SELECT STATEMENT        |           |    10 |   740 |       |   504   (3
    )| 00:00:07 |
    
    |*  1 |  COUNT STOPKEY          |           |       |       |       |
     |          |
    
    |   2 |   VIEW                  |           | 49902 |  3606K|       |   504   (3
    )| 00:00:07 |
    
    |*  3 |    SORT ORDER BY STOPKEY|           | 49902 |  1559K|  3928K|   504   (3
    )| 00:00:07 |
    
    |*  4 |     TABLE ACCESS FULL   | TEST_SORT | 49902 |  1559K|       |    60   (5
    )| 00:00:01 |
    
    --------------------------------------------------------------------------------
    -------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter(ROWNUM<11)
       3 - filter(ROWNUM<11)
       4 - filter(SUBSTR("NAME",0,3)='sel')
    
    
    Statistics
    ----------------------------------------------------------
            139  recursive calls
              0  db block gets
            279  consistent gets
              0  physical reads
              0  redo size
            695  bytes sent via SQL*Net to client
            400  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              5  sorts (memory)
              0  sorts (disk)
             10  rows processed 
    
    sql doesn't choose index ,so I use hint to force oracle choose index
    
    SQL> select * from (select /*+ index(test_sort) */ * from test_sort where substr(name,0,3)='sel'
      2  order by object_name) where rownum<11;
    
    10 rows selected.
    
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 1978014138
    
    --------------------------------------------------------------------------------
    ------------------------
    
    | Id  | Operation                      | Name          | Rows  | Bytes |TempSpc|
     Cost (%CPU)| Time     |
    
    --------------------------------------------------------------------------------
    ------------------------
    
    |   0 | SELECT STATEMENT               |               |    10 |   740 |       |
     22869   (1)| 00:04:35 |
    
    |*  1 |  COUNT STOPKEY                 |               |       |       |       |
                |          |
    
    |   2 |   VIEW                         |               | 49902 |  3606K|       |
     22869   (1)| 00:04:35 |
    
    |*  3 |    SORT ORDER BY STOPKEY       |               | 49902 |  1559K|  3928K|
     22869   (1)| 00:04:35 |
    
    |   4 |     TABLE ACCESS BY INDEX ROWID| TEST_SORT     | 49902 |  1559K|       |
     22424   (1)| 00:04:30 |
    
    |*  5 |      INDEX RANGE SCAN          | I_TEST_SORT_1 | 49902 |       |       |
       278   (1)| 00:00:04 |
    
    --------------------------------------------------------------------------------
    ------------------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter(ROWNUM<11)
       3 - filter(ROWNUM<11)
       5 - access(SUBSTR("NAME",0,3)='sel')
    
    
    Statistics
    ----------------------------------------------------------
              1  recursive calls
              0  db block gets
          22393  consistent gets
              0  physical reads
              0  redo size
            695  bytes sent via SQL*Net to client
            400  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
             10  rows processed
    
    From the explain ,the sql chooses the index,but SORT ORDER BY STOPKEY  doesn't avoid,so oracle
    must read all rows satisfy substr(name,0,3)='sel' ,the I rewrite the sql as the following,we can see 
    that sort ORDER BY STOPKEY does't happen,so oracle return 10 rows fast. 
    
    SQL> select * from (select /*+ index(test_sort) */ * from test_sort where substr(name,0,3)='sel'
      2  order by substr(name,0,3),object_name) where rownum<11;
    
    10 rows selected.
    
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 4154852915
    
    --------------------------------------------------------------------------------
    ---------------
    
    | Id  | Operation                     | Name          | Rows  | Bytes | Cost (%C
    PU)| Time     |
    
    --------------------------------------------------------------------------------
    ---------------
    
    |   0 | SELECT STATEMENT              |               |    10 |   740 |     8
    (0)| 00:00:01 |
    
    |*  1 |  COUNT STOPKEY                |               |       |       |
       |          |
    
    |   2 |   VIEW                        |               |    10 |   740 |     8
    (0)| 00:00:01 |
    
    |   3 |    TABLE ACCESS BY INDEX ROWID| TEST_SORT     | 49902 |  1559K|     8
    (0)| 00:00:01 |
    
    |*  4 |     INDEX RANGE SCAN          | I_TEST_SORT_1 |    10 |       |     3
    (0)| 00:00:01 |
    
    --------------------------------------------------------------------------------
    ---------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter(ROWNUM<11)
       4 - access(SUBSTR("NAME",0,3)='sel')
           filter(SUBSTR("NAME",0,3)='sel')
    
    
    Statistics
    ----------------------------------------------------------
              1  recursive calls
              0  db block gets
             11  consistent gets
              0  physical reads
              0  redo size
            695  bytes sent via SQL*Net to client
            400  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
             10  rows processed

    Jinyu wrote:
    Hi, I think that this may be an optimizer bug 10g or flaw optimizer 10 g, although substr (name, 0, 3) = 'salt' is not selective, but oracle can also use indexes to find the top 10 by object_name result order

    Jinyu,

    Indeed, it seems to be a gap in the mode of optimization 10.2 FIRST_ROWS_n. I could reproduce your problem in 10.2.0.4 and watching the 10053 trace, it looks like that the optimizer does not consider the option "Recost for ORDER (with the HELP of indexes)" where you have a composite index based function. It does when using a 'normal' composite index, and it does - as you mentioned - when using the main column in the ORDER BY expression as well. You don't need to use INDEX indicator in this case, moreover, the recosting for ORDER BY then works very well and chooses the index without specified indicators.

    11 g the "recalculate for ORDER BY" appears again in the first place it looks like an obvious limitation / bug of 10.2.0.3/4 at least.

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676 /.
    http://sourceforge.NET/projects/SQLT-pp/

  • is there a sort order global for all folders?

    I have a lot of mail files, and I want them all to sort of the same way. However I can't find a way to set the sort order in the world, only individually per-folder. Is there a global sort order?

    Are you familiar with the configuration of Thunderbird Editor?

    If you change the wrong setting, or the incorrect value, you can make unusable Thunderbird, but if you're very careful...

    Read this article...

    http://superuser.com/questions/13518/change-the-default-sorting-order-in-Thunderbird

    TB - 38, 3 Win10-PC

Maybe you are looking for