allow passing array with arguments for sorting attributes