Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 9/26/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.1.6.8. dni::sort_collection (::quartus::dcmd_sdc_collection_api)

The following table displays information for the dni::sort_collection Tcl command:

Tcl Package and Version

Belongs to ::quartus::dcmd_sdc_collection_api

Syntax dni::sort_collection [-h | -help] [-long_help] [-descending] [-dictionary] [-limit <limit> ] <collection> <criteria>
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-descending Indicates that the collection is to be sorted in reverse order. By default, the sort proceeds in ascending order
-dictionary Sort strings dictionary order. For example "a30" would come after "a4"
-limit <limit> Only return the first unique values from the primary sort key
<collection> The base collection
<criteria> Specifies a list of one or more application or user-defined attributes to use as sort keys
Description
        Sorts a collection based on one or more attributes, resulting in a new, sorted collection. The sort is ascending by default.
Example Usage
set size [::dni::sort_collection $collection {is_hierarchy}]
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful