Added support for ordering by key and ascending descending