Two parameters are available to sort the list of images returned by these methods.
sort_key: KEYImages can be ordered by the image attribute
KEY. Acceptable values:id,name,status,container_format,disk_format,created_at(default) andupdated_at.sort_dir: DIRThe direction of the sort may be defined by
DIR. Accepted values:ascfor ascending ordesc(default) for descending.
The following example will return a list of images sorted alphabetically by name in ascending order.
..code-block:: python
from glance.client import Client
c = Client("glance.example.com", 9292)
print c.get_images(sort_key='name', sort_dir='asc')
