support for defining sort and order criteria