Define comparisons for plays to allow sorting

Additionally, we use the decorator total_ordering to fill in all the
missing comparisons.