@jit(nopython=True)<EOL>def sort(line):
x0, y0, x1, y1 = line<EOL>turn = False<EOL>if abs(x1 - x0) > abs(y1 - y0):<EOL><INDENT>if x1 < x0:<EOL><INDENT>turn = True<EOL><DEDENT><DEDENT>elif y1 < y0:<EOL><INDENT>turn = True<EOL><DEDENT>if turn:<EOL><INDENT>return (x1, y1, x0, y0)<EOL><DEDENT>return line<EOL>
change point position  if x1,y0 < x0,y0