fix appid order by