Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Ada Code > Generating Ada code > Modeling Ada code in Modeler > Generating an item's child items in a specific order (Ada code)
  
Generating an item's child items in a specific order (Ada code)
You can order the child items of a Model, Package, Class, Data Type or Operation so that the child items are generated in the order that are listed. You can order child items in the following ways:
Through the Ada Generation Order tag definition of the «Ada Source» stereotype.
Through standard parent/child relationships shown on the Items tab of the parent item's Property Pages.
Child items that are ordered through the «Ada Source» stereotype are generated before items that are ordered through the Items tab of the Property Pages.
To order an item's child items through the «Ada Source» stereotype:
1. Apply the «Ada Source» stereotype to the parent item. How?
2. Open the parent's items Property Pages.
3. Click the Ada Source tab.
4. Through the Ada Generation Order tag definition, reference the child items you want to order.
5. Click the Items tab.
6. In the Show Associated list, select Ada Generation Order.
7. For each item you want to move to a different position.
a. Select the item in the list.
b. Use the following buttons to move the item to the required position.
To order an item's child items through the standard parent/child relationships:
1. Open the parent item's Property Pages.
2. Click the Items tab.
3. In the Show Associated list, select the appropriate parent/child relationship. Note:
Attributes orders child Attributes.
Operations orders child Operations.
Type Definitions orders child Type Definitions.
Nested Classes orders child Classes, Data Types, Interfaces and Signals.
All Package Items (for a Package only) orders child items other than Attributes and Operations.
4. For each item you want to move to a different position.
a. Select the item in the list.
b. Use the following buttons to move the item to the required position.
* 
Changing the order of items on the Items tab does not affect the order in which the items are displayed in the Packages pane