In this task you will learn how to change the default order of secondary sort keys. In this example we choose the <BaseQuery Name="Fred4Pages" in the FRED4_Config.xml configuration file. |
You will be able to perform this task only if: •You already opened the fred4_config.xml file as explained in TASK: Open for editing one or more files with directory styles, ordered the view as explained in TASK: Display an ordered view of directory style elements, and located the <DirectoryStyle Name="List" under the <BaseQuery Name="Fred4Pages". |
1.Expand the <DirectoryStyle Name="List" element so you see all its elements collapsed: 2.Expand the SortList and then expand the <Sort Name="Number": As you can see, the primary sort key is the page.logicalPage; the secondary key is page.number. This means that if the current edition contains 2 logical and 2 physical pages, they will be sorted so that logical page 1 is followed by the logical page 2, and then it comes the physical page 1, and the physical page 2. Let's assume you want that the order will be: logical page 1, physical page 1, logical page 2, physical page 2. 3.Select the entire line <SortDescription PropertyName="[page.logicalPage]" IsAscending="true"/> and move it below the <SortDescription PropertyName="[page.number]" IsAscending="false"/> line so it looks like: 4.Save changes and import them in database as explained in TASK: Save changes and import them in database. 5.Restart Fred and then look at the navigator on the Pages main tab: if your edition has logical and physical pages, they're now grouped by the page number. |