typo in the sort

sort uses a closure, not a function