Ha, that's basically what I just did with the Haskell version:
Prelude> import Data.List
Prelude Data.List> sum . take 2 . reverse . sort $ [1..5]
9