[C++11] Convert sort predicates into lambdas.

No functionality change.
[C++11] Convert sort predicates into lambdas.

No functionality change.