287
edits
| (One intermediate revision by the same user not shown) | |||
| Line 13: | Line 13: | ||
#Make how one specifies the sort info consistent, as described below. | #Make how one specifies the sort info consistent, as described below. | ||
#Simplify the sort code | #Simplify the sort code | ||
[https://bugzilla.mozilla.org/show_bug.cgi?id=335122 Bug 335122] tracks this work. | |||
===Attributes=== | ===Attributes=== | ||
| Line 57: | Line 59: | ||
===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. | |||
edits