comparators: remove function literals for builtin comparators

These function literals are copied verbatim into the godoc, which just makes
it ugly.