Make group and account order by targetted field