Use couch buit-in functions.