If you have one or more line features with
per-vertex elevations selected, the Analysis menu on the right-click menu
will contain an option to force the per-vertex elevations to flow downhill
(i.e. each elevation is less than or equal than the previous one).
The order of the line vertices will also be reversed if the first vertex elevation is less than the last one.