Started the order function in path.py

Cleaned up some missing parens as well.