How do I access the members of a TMap in a predicate for ValueSort()?

Thank you, I have heard of lambdas but never used them. The time to start is now I suppose. Must predicates to functions like ValueSort always be passed in a lambda syntax?