EUCA-7791
added ability to overide sort direction as well
Merge pull request #137 from eucalyptus/EUCA-7791

EUCA-7791