[fix] [minor] fix in re-order query