Added min and max function
feature #1277 Added min and max function (lyrixx)

This PR was merged into the master branch.

Discussion
----------

Added min and max function

usefull for pagination

Commits
-------

6aa06de Added min and max function