Added support for ordering by key and ascending descending

@jdoconnor || @darbyfrey
is this needed?