#NEWLINE# def _append_children( node , location_db , locations ) : #NEWLINE# #INDENT# by_type = _group_by_type ( locations ) #NEWLINE# for ( type , locs ) in by_type . items ( ) : #NEWLINE# #INDENT# locs = sorted ( locs , key = ( lambda loc : loc . name ) ) #NEWLINE# node . append ( _types_to_fixture ( location_db , type , locs ) )