Sort the p6IXMLNode components in the p6IDOMNodeset container.
Note, that calling this function successfully causes an implicit reset() on the enumerator. This is necessary since the order of the elements in the set have changed.
A sort key is generated for each p6IXMLNode in the set by applying the XPath expression on each node. The XPath expression must generate the sort key type as specificied in the 'type' parameter.
- Parameters
-
pXMLTree | [ in ] XML tree that can be used to evaluate the pExp expression. |
type | [ in ] How to re-order the nodes in the set. The pExp parameter should provide the sort key of the proper type (i.e., numeric, string, time). |
pExp | [ in ] XPath component used to generate the sort key for each node in the node set. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | One of the parameters is NULL. |
P6R::eNotInitialized | The component is in an invalid state. |
P6R::eTypeError | pExp not generating value required by type paramter. |