# h5dump and creation order

**URL:** <https://forum.hdfgroup.org/t/h5dump-and-creation-order/2143>\
**Category:** Hdf-forum archives\
**Created:** [April 13, 2011, 8:34am UTC](https://forum.hdfgroup.org/t/h5dump-and-creation-order/2143 "2011-04-13T08:34:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc\_POINOT](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@Marc\_POINOT](https://forum.hdfgroup.org/u/Marc_POINOT)\
**Post date:** [April 13, 2011, 8:34am UTC](https://forum.hdfgroup.org/t/h5dump-and-creation-order/2143/1 "2011-04-13T08:34:34Z")

</div>

Hi all,

remark report: h5dump doesn't care about creation order when using option -n (print contents).

Function h5trav\_print/traverse in lib/trav.c used by h5dump/h5dump.c in dump\_fcontents  
forces flags H5\_INDEX\_NAME, H5\_ITER\_INC instead of taking into account  
those set in h5dump.c (which would require fuction interface change).

Maybe it's somewhere in the doc, but the h5dump on-line usage doesn't say about...

-MP-

> **···**
>
> -----------------------------------------------------------------------  
> &nbsp;&nbsp;Marc POINOT [ONERA/DSNA] Tel:+33.1.46.73.42.84 Fax:+33.1.46.73.41.66  
> &nbsp;&nbsp;Avertissement/disclaimer [http://www.onera.fr/onera-en/emails-terms](http://www.onera.fr/onera-en/emails-terms)

---

<div class="post-metadata">

**Author:** ![Jonathan\_Kim](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@Jonathan\_Kim](https://forum.hdfgroup.org/u/Jonathan_Kim)\
**Post date:** [April 13, 2011, 3:45pm UTC](https://forum.hdfgroup.org/t/h5dump-and-creation-order/2143/2 "2011-04-13T15:45:03Z")

</div>

Hi,

h5dump has option for those settings as shown below (also in help page).

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-q Q, --sort\_by=Q Sort groups and attributes by index Q  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Q - is the sort index type. It can be "creation\_order" or "name" (default)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-z Z, --sort\_order=Z Sort groups and attributes by order Z  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Z - is the sort order type. It can be "descending" or "ascending" (default)

As you already looked at the code, it currently only support without -n option.

We will file the bug to address the issue!

Thanks for your report!

- HDF5 tool team

> **···**
>
> On 4/13/2011 3:34 AM, Marc POINOT wrote:
> 
> > Hi all,
> > 
> > remark report: h5dump doesn't care about creation order when using option -n (print contents).
> > 
> > Function h5trav\_print/traverse in lib/trav.c used by h5dump/h5dump.c in dump\_fcontents  
> > forces flags H5\_INDEX\_NAME, H5\_ITER\_INC instead of taking into account  
> > those set in h5dump.c (which would require fuction interface change).
> > 
> > Maybe it's somewhere in the doc, but the h5dump on-line usage doesn't say about...
> > 
> > -MP-  
> > -----------------------------------------------------------------------  
> > Marc POINOT [ONERA/DSNA] Tel:+33.1.46.73.42.84 Fax:+33.1.46.73.41.66  
> > Avertissement/disclaimer [E-mails sent from ONERA | ONERA](http://www.onera.fr/onera-en/emails-terms)
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@hdfgroup.org  
> > [http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)
