# Help command (?) does not display leaves in their order declaration

**URL:** <https://dmap-community.ductus.global/t/help-command-does-not-display-leaves-in-their-order-declaration/642>\
**Category:** YANG\
**Created:** [August 23, 2016, 1:36pm UTC](https://dmap-community.ductus.global/t/help-command-does-not-display-leaves-in-their-order-declaration/642 "2016-08-23T13:36:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruxob](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@ruxob](https://dmap-community.ductus.global/u/ruxob)\
**Post date:** [August 23, 2016, 1:36pm UTC](https://dmap-community.ductus.global/t/help-command-does-not-display-leaves-in-their-order-declaration/642/1 "2016-08-23T13:36:02Z")

</div>

I’ve the got the following Container\_1 (see its Yang Model just below) with 1 mandatory leaf Leaf\_0 + 4 optional Leaves “Leaf\_d, Leaf\_a, Leaf\_b, Leaf\_c”.  
If I type : Container\_1 25 ?  
the possible completions displayed are not in the order of leaf declaration ???

Leaf\_a \<0=enum0 | 1=enum1\>  
Leaf\_b \<0=enum0|1=enum1\>  
Leaf\_c \<0=enum0|1=enum1\>  
Leaf\_d \<0=enum0|1=enum1\>

Can I control the order of leaves when I use the help command (?)  
Regards

```
  container Container_1 {
    leaf Leaf_0{
      type string {
        length "1..35";
        tailf:info "String max 35 digits";
      }
      tailf:cli-drop-node-name;
    }
    leaf Leaf_d{
      type enumeration {
        enum "0" {
          value 0;
        }
        enum "1" {
          value 1;
        }
        tailf:info "<0=enum0 | 1=enum1>";
      }
      tailf:info "<0=enum0 | 1=enum1>";
      tailf:cli-optional-in-sequence;
    }
    leaf Leaf_a{
      type enumeration {
        enum "0" {
          value 0;
        }
        enum "1" {
          value 1;
        }
        tailf:info "<0=enum0 | 1=enum1>";
      }
      tailf:info "<0=enum0 | 1=enum1>";
      tailf:cli-optional-in-sequence;
    }
    leaf Leaf_b {
      type enumeration {
        enum "0" {
          value 0;
        }
        enum "1" {
          value 1;
        }
        enum "2" {
          value 2;
        }
        tailf:info "<0=enum0 | 1=enum1>";
      }
      tailf:info "<0=enum0 | 1=enum1>";
      tailf:cli-optional-in-sequence;
    }
    leaf Leaf_c {
      type enumeration {
        enum "0" {
          value 0;
        }
        enum "1" {
          value 1;
        }
        enum "2" {
          value 2;
        }
        tailf:info "<0=enum0 | 1=enum1>";
      }
      tailf:info "<0=enum0 | 1=enum1>";
      tailf:cli-optional-in-sequence;
    }
    tailf:info "Set Container_1 ";
    tailf:cli-compact-syntax;
    tailf:cli-sequence-commands {
        tailf:cli-reset-siblings;
        }
    tailf:cli-full-no;
  }
```

---

<div class="post-metadata">

**Author:** ![waitai](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/waitai/32/436_2.png) [@waitai](https://dmap-community.ductus.global/u/waitai)\
**Post date:** [August 23, 2016, 9:28pm UTC](https://dmap-community.ductus.global/t/help-command-does-not-display-leaves-in-their-order-declaration/642/2 "2016-08-23T21:28:41Z")

</div>

> [@ruxob](#):
>
> Can I control the order of leaves when I use the help command (?)

The order of the leafs shown with the ? command is sorted alphabetically. There is currently no mechanism to modify the display order of the leafs being shown.
