Implemented by
A service used to sort the contents of a XUL widget.
[scriptable, uuid(bfd05261-834c-11d2-8eac-00805f29f371)]
interface nsIXULSortService : nsISupports
Methods
Used internally for insertion sorting.
[noscript]
void
insertContainerNode(in nsIRDFCompositeDataSource db, in nsRDFSortState sortStatePtr, in nsIContent root, in nsIContent trueParent, in nsIContent container, in nsIContent node, in boolean aNotify)
Sort the contents of the widget containing <code>aNode</code> using <code>aSortResource</code> as the comparison key, and <code>aSortDirection</code> as the direction. @param aNode A node in the XUL widget whose children are to be sorted. <code>sort</code> will traverse upwards to find the root node at which to begin the actualy sorting. For optimal results, pass in the root of the widget. @param aSortResource The RDF resource to be used as the comparison key. @param aSortDirection May be either <b>natural</b> to return the contents to their natural (unsorted) order, <b>ascending</b> to sort the contents in ascending order, or <b>descending</b> to sort the contents in descending order.
void
sort(in nsIDOMNode aNode, in AString aSortResource, in AString aSortDirection)
Compare to: