Total order patch patch by joernhees · Pull Request #862 · RDFLib/rdflib (original) (raw)

fixes possible problems introduced by #793 which caused datetime objects only to be sorted by existance of tzinfo.

Solution here is to cast to a tuple (naive/aware, value) and relying on sort / comparison of tuples to be lazy