How to return record(s) with max value in a view

I found a CouchDB max reduce function that is working well.