fixing key, sorting by reverse