Reorder functions in linexprs.py