I have a code where python sorts parameters by another ones using zips and lambdas. So the question is how can I make it easier an more optimised. T