working on sorting cca barplot
Adding sorting of inputs and outputs.