order by has arg master detail fix