Add sort option in a common way

Registered by aohuanxuan

osc-lib support to sort list by keys and directions by using the method:
    utils.sort_items()
but there are many list commands in OSC do not support it.
So I think we can add the "--sort" option for list commands in OSC in a common way.
for example, we can add a common method like
    add_sort_option_to_parser(parser)
in a common file and reuse it in our list commands.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
aohuanxuan
Direction:
Needs approval
Assignee:
aohuanxuan
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-sort-option,n,z

Addressed by: https://review.openstack.org/446892
    Add "--sort" option to "volume backup list" in a common way

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.