fix asc and desc sort