XULSortService: Difference between revisions

Jump to navigation Jump to search
Line 57: Line 57:
===Sorting Non-Templates===
===Sorting Non-Templates===


For an element that doesn't have a template, support will be added to allow it to be sorted using the sort service's Sort method. If the element implements nsIDOMXULSelectControlElement, its items will be sorted. Otherwise, the children of the element will be sorted. The sort key is an attribute on those items to sort by.
For an element that doesn't have a template, support will be added to allow it to be sorted using the sort service's Sort method. If the element implements nsIDOMXULSelectControlElement, its items will be sorted. For trees, the treeitems will be sorted Otherwise, the children of the element will be sorted. The sort key is an attribute on those items to sort by.
 
If an item to be sorted has a container attribute set to true, it will be sorted recursively.
287

edits

Navigation menu