Support order by combination of val() and predicate

Enhancement request for supporting order by a combination of val() and predicate.

orderdesc: val(SECTIONS_COUNT), orderasc: name

Please see Second order isn't applied and Why second order not work?.