EpubCFI.compare() returns wrong result
EpubCFI.compare() returns wrong result for the following CFIS:
EpubCFI.compare("epubcfi(/6/2[id0]!/4/8,/1:273,/1:326)", "epubcfi(/6/2[id0]!/4/8,/2/1:4,/1:21)") the function returns -1,
but actually the second is before the first - this is the relevant html part
Background.[146] Behavior is influenced by individuallevel attributes as well as by the conditions under which people live. Altering policies, practices, and the conditions of life can directly and indirectly influence individual behavior. This paper builds on existing ecological theories of health behavior by specifying structural mechanisms by which population-level factors effect change in individual health behaviors.
and the text , ( epubcfi(/6/2[id0]!/4/8,/2/1:4,/1:21 marked in bold, epubcfi(/6/2[id0]!/4/8,/1:273,/1:326 in italics) :Background.[146] Behavior is influenced by individuallevel attributes as well as by the conditions under which people live. Altering policies, practices, and the conditions of life can directly and indirectly influence individual behavior. This paper builds on existing ecological th_eories of health behavior by specifying structural me_chanisms by which population-level factors effect change in individual health behaviors.
Obviously this happens because the earlier cfi has more parts )I guess because of the element in bold) , but it is also clearly wrong