7.8. x:<=>

(x:<=> node1 node2)

Compare the document order of two nodes. Return values:

Example 43. Using x:call

<s:scheme>
  (let (
      (node1 (car (x:eval "marker1"))
      (node2 (car (x:eval "marker2")))
    (if (= -1 (x:<=> node1 node2))
      (display "marker1 comes first")
      (display "marker2 comes first")))
</s:scheme>