aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/serd/node.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/serd/node.h b/include/serd/node.h
index 50108f57..95638c68 100644
--- a/include/serd/node.h
+++ b/include/serd/node.h
@@ -410,6 +410,19 @@ serd_node_equals(const SerdNode* SERD_NULLABLE a,
const SerdNode* SERD_NULLABLE b);
/**
+ Compare two nodes.
+
+ Returns less than, equal to, or greater than zero if `a` is less than, equal
+ to, or greater than `b`, respectively.
+
+ Nodes are ordered first by type, then by string, then by language or
+ datatype, if present.
+*/
+SERD_PURE_API int
+serd_node_compare(const SerdNode* SERD_NONNULL a,
+ const SerdNode* SERD_NONNULL b);
+
+/**
@}
@}
*/