put sort and order gen code in a comment if no id