Pau Rocher's Python code updated for Python 3 (for Nuke 13). I have used it in Nuke 12.2 on up with Windows but haven't tested it on older versions of Nuke or Mac/Linux.
shuffleChannels Python 3 update
Updated: 26 April 2022
Author: jjohncorbett
Compatible Nuke versions: 12.2 or later
Compatibility: