Printing highest value from a list

Hi all,

I'm trying to get the item with the maximum value, and was wondering if someone can help me with it.

Heres my input file:

apples 15
books 15
books 17
pens 12
pens 15
umbrella 13

Here's what my output file should look like:

apples 15
books 17
pens 15
umbrella 13

Can someone help me please?

Thanks in advance

awk '{a[$1]=a[$1]>$2?a[$1]:$2}END{for (i in a) print i, a|"sort"}' infile
$ sort +1nr infile | nawk '!x[$1]++'