Dictionary values ascending or descending

my previous reply was not correct, I have edited it but someone pressed the like, hence this one

My use of Revise was interfering