sort.GRiwrm function

Sort a GRiwrm network in upstream-downstream order ready for Calibration