Hammer CLI --by and --order flags are not sorting by name using the version argument

Solution Verified - Updated -

Issue

Trying to sort content view versions by name or by version and am not able to:

Sort by name but ends up sorting by version:

[root@satellite-test ~]# hammer content-view version list --by name
---|-------------------------------|---------|--------------------------
ID | NAME                          | VERSION | LIFECYCLE ENVIRONMENTS   
---|-------------------------------|---------|--------------------------
9  | Capsule_Content_View 4.0      | 4.0     | Library, test, production
4  | Capsule_Content_View 3.0      | 3.0     |                          
10 | RHEL6_View 2.0            | 2.0     | Library                  
8  | RHEL7_View 2.0            | 2.0     | Library, test, production
3  | Capsule_Content_View 2.0      | 2.0     |                          
7  | RHEL7_View 1.0            | 1.0     |                          
6  | RHEL6_View 1.0            | 1.0     | test, production         
2  | Capsule_Content_View 1.0      | 1.0     |                          
1  | Default Organization View 1.0 | 1.0     | Library                  
---|-------------------------------|---------|--------------------------

Try and sort by name DESC but get nothing:

[root@satellite-test ~]# hammer content-view version list --order 'name DESC'
---|------|---------|-----------------------
ID | NAME | VERSION | LIFECYCLE ENVIRONMENTS
---|------|---------|-----------------------

Usage of --order is based on help output.

Environment

Red Hat Satellite or Proxy 6.4 or newer

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content