modify ip query order by.