fix error in case of no sorting column and  or order