EUCA-7791

added ability to overide sort direction as well (This was missed in the first fix)