If you want to refer to the same dataset in more than one place in the catalog, use an alias attribute, so that you don't have to maintain the aggregation element in more than one place, as in Example 10:
Example 10
<dataset name="NCEP RUC Model Output" urlPath="NCEP/RUC" ID="NCEP-RUC">
<service name="localGrids" serviceType="NetCDF"
base="file:///E:/data/grids/"/>
<metadata metadataType="Aggregation">
<aggregation serviceName="localGrids" varName="valtime"
aggType="JoinExisting">
<fileAccess urlPath="01070516_ruc.nc"/>
<fileAccess urlPath="01070517_ruc.nc"/>
<fileAccess urlPath="01070518_ruc.nc"/>
</aggregation>
</metadata>
</dataset>
...
<dataset name="Another way to sort the datasets>
<dataset name="NCEP RUC Model Output" alias="NCEP-RUC"/>
..
</dataset>