Added order by clause during data export
Added order by clause during data export

Order by primary key if it exists, otherwise order by unique key with lease number of columns, if unique key are not defined, order by all columns in the select clause.

sethreno/schemazen,sethreno/schemazen