Some additional sort-options

These are sort-options that was needed in our projects that we did not find support for: case-insensitive sorting and taking max, min or avg of a nested property and sort by it.