The channels are exposed through the plugin API, which in itself might even be differently from the order the host displays it to the user.
Even more, in Logic the user can specify the preferred order of the channels
You wouldn’t expect the order in your plugin to change with that setting?
But apart from that, it was discussed before in this thread:

