ordering.py: Implement a color based ordering.