Gtk.TreePath.prototype.compare

function compare(b:Gtk.TreePath):Number {
    // Gjs wrapper for gtk_tree_path_compare()
}

Compares two paths.

If a appears before b in a tree, then -1 is returned. If b appears before a, then 1 is returned. If the two nodes are equal, then 0 is returned.

b

a Gtk.TreePath to compare with

Returns

the relative positions of a and b