Added support for tuple as sorting order