The LineMinDistance function ( Rhino - RhinoScriptSyntax (rhino3d.com)) of script syntax gives a different answer when the line is flipped. This is mathematically incorrect. Example code for testing is given here (tested in Rhino 7):
import rhinoscriptsyntax as rs
point_1 = [88.2,0,33.8]
point_2 = [88.2, 5.6847,33.8]
point_3 = [88.2,1.2,33.8]
point_4 = [88.2,5.7375,33.8]
line_1 = [point_1, point_2]
line_2 = [point_3, point_4]
line_2_reverse = [point_4, point_3]
result_1 = rs.LineMinDistanceTo(line = line_1, point_or_line = line_2)
print(result_1)
result_2 = rs.LineMinDistanceTo(line = line_1, point_or_line = line_2_reverse)
print(result_2)