fix creating sensor/actor, sort datasources/targets