Home How can I give rank numbers to the sorted output?
 For example, if the input is: Dog 100 Cat 200 Monkey 50 Elephant 20  I want the output to be: 1 Cat 200 2 Dog 100 3 Monkey 50 4 Elephant 20  I want to use the sort function to achieve this. Thanks!