How to rank numbers by their numerical value?

Published: 12/10/2017
How to rank numbers by their numerical value?
Source: STACKOVERFLOW.COM

How can I convert a list of arbitrary numbers to a ranked list? Take the following numbers for example: 1, 2, 3, 3, 6, 8, 8, 8, 9, 10, 10, 11 Translated to ranked list: rank: value 1: 1 2: 2 3: 3 3: 3 4: 6 5: 8 5: 8 5: 8 6: 9 7: 10 7: 10 8: 11 Is there an elegant way to do this?

Read more
Related news
Comment
FACEBOOK