order dependencies alphabetically too

useflag dependent deps go last and ordered by useflag name