Comment 2 for bug 521471

Revision history for this message
Jefficus (jeff-smithicus) wrote : Re: [Bug 521471] Re: Order annotations in tree by span start

Yes, this is a really useful feature, but that doesn't mean we should
break architectural independence to achieve it. I can think of three
ways to try doing this.

1) We could change the SQL query so that it adds an ORDER BY clause to
pre-sort the data for us.

2) We could sort the records in memory before inserting them into the
tree control.

3) We could subclass the tree control and add a behavior modification
to cause it to sort records the way we want, possibly requiring some
additional information to be included in the tree node records when
they are added to the control.

Will any of these methods work without breaking the architecture?

--
Jeff Smith
Computer Science Dept.
University of Saskatchewan
Phone: 306-665-8157