I tried that tip but it didn't help. Let me give you an example of what I'm doing.
The A-Pro midi controller has two inputs, A-Pro 1 for the keys and A-Pro 2 for the controllers etc. If I happen to have the Deepmind 12 switched on, but not enable the input, my midi inputs in Sonar look like
1: Deepmind 12 (not checked)
2: A-Pro 2
3: A-Pro 1
4: Some midi input from a VST I am using
And the Controller surface settings are
Input: A-Pro-2 , Output: A-Pro
I went to record some midi sequence from the Deepmind and just for convenience, I thought I'd use the Deepmind usb midi port instead of playing it through the A-Pro keyboard. As soon as I enabled the Deep Mind midi port, Sonar shifted all the reverenced down by one, ie
Controller surface settings are now
Input: Deepmind , Output: A-Pro
and all my Midi input for other tracks have now changed from port 3: A-Pro 1 (the controllers Keyboard) to Port 4: Some midi input from a VST I am using.
Its as if Sonar does not associate the inputs and outputs to the names of the ports, it just sees Port 1, Port 2, Port 3 etc and if something high up on the midi inputs list becomes enabled during the session, Sonar ignores the re-ordering of the ports and if Sonar was originally sending something out on port 1, it will continue to send it out on port 1, even if that port destination just changed.
I can send screen shots of the settings if it helps show where I am coming from. Sonar will allow me to arrange the order of the output ports, which helps a little, but it will not allow me to re-order the inputs and for some reason when I have other usb midi devices switched on, Sonar pushes the Apro ports to the bottom of the list which affects everything in the project including the control surface.