Detailed Drawings > Working with the Drawing Table > Creating and Configuring Report Tables > Sorting in Repeat Regions > About Sorting in a Repeat Region
  
About Sorting in a Repeat Region
Using the SORT REGION menu that appears when you click Sort Regions on the TBL REGIONS menu, you can sort the contents of a repeat region to change the order in which the system lists entries in a table:
When you click Add > Forward, it sorts entries forward, by ASCII character value.
When you choose Add > Backward, it sorts entries in reverse order.
You can specify more than one parameter symbol for sorting a region; the system sorts entries by the first parameter, and then by each succeeding parameter, if necessary. You can enter user-defined parameters as sorting parameters.
For the purposes of sorting, the system considers a text string in a repeat region to consist of two parts:
A nonnumerical part, which comprises everything in the string that precedes the numerical part.
A numerical part, which comprises all contiguous numbers at the end of the string, possibly including a decimal point.
 
* The system considers a leading "+" or "-" to be a portion of the numerical part of the string if the string contains no other nonnumerical data.
In any given string, either the numerical or the nonnumerical part can be empty. The system determines the sort order by making a comparison between each pair of strings in the field selected as the sort key. Instead of comparing each pair of strings strictly as strings, it considers the numerical and nonnumerical parts separately. If the nonnumerical parts of two strings are identical, it determines the order by considering their numerical parts as numbers. A sorting parameter is valid only for the specified repeat region. Repeat regions that are nested are not affected by sorting parameters at a higher region.
Use the commands of the SORT REGION menu to add, edit or remove sorting rules.
When you sort a repeat region that has the format attribute No Duplicates, models from different assemblies are arranged in the same order as the assembly entries appear in the table. Additionally, if a model is shared by different assemblies, only one entry of such shared model appears.
However, if the attribute No Duplicates or No Dup/Level is not set, entry for the shared model appears under respective assemblies in the table.