change the sort type of getting data