Unit test for wrong query result using DESC PK column
fix desc sort bugs