sort a map using values in reverse order with generics