add __lt__, __le__, __ge__, __gt__ to class Function