Fix a bug in the TopoOrderRC comparison function.