Creating Chain of Relationships

Can we insert relationships based on the values contained in the properties attached to the nodes and then connecting these nodes to one another based on the values in the properties.

Example:
We have a property :date attached to nodes :Class. Now we want to create relationships from the :Class node with the lowest :date value to the next :Class node with the next :date value. ClassA > ClassB > ClassC in order of date values. The date is earliest for C. We want to create :NEXT relationship from C to B to A .