Section 6. Sort elements from a Package or an Element by Object Id
This help article explains how to use eaUtils Sort By Object ID feature on the elements within a package or element. Object ID refers to one of the unique identifiers for any element created in EA, with an incremented value matching the creation order e.g. 1, 2, 3... Note: Object ID values are specific to an element within an EA project, whereas GUID values are specific to an element and remain the same whatever the EA project is used (in case a model is imported within several EA projects).
This feature runs on a package or an element selected from the Project Browser (it can also be run on a package tree, click here for more information).
Sort elements within a package by object id (creation order)
In the following example, classes have been created in the order matching their suffix value (e.g. -1, -2, -3, etc.). Below is the default EA sorting order.
Right click on the package where elements need to be sorted > Specialize > eaUtils > Project Browser: sort elements.
In the following dialog window, select Object ID as the sorting option and confirm that you would like to proceed.
Note: eaUtils sort by settings are displayed. The settings can be opened and modified if needed.
Once completed, the following window is displayed:
The new sorting order is visible in Enterprise Architect project browser as illustrated below: