Re: Priorities are badly sorted.

Tor Norbye <[email protected]> Thu, 17 Jul 2003 10:09:14 -0700
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Organization Sun Microsystems, Inc
Message-ID <[email protected]>
Philippe Couton wrote:
> Hello,
> 
> I've just downloaded the latest version of TaskList for NB 3.5.
> 
> I have a problem when I sort my tasks by priorities. In this case, I expect to
> have the tasks sorted like that (ascending):
> 
> 	Low
> 	Medium-Low
> 	Medium
> 	Medium-High
> 	High
> 
> But what I have is:
> 
> 	High
> 	Low
> 	Medium-High
> 	Medium-Low
> 	Medium
> 
> I think the tasks are sorted alphabetically, not using the real priority.
> Is this problem known (and maybe corrected)?

Nope, that has been overlooked. The priorities used to be integers, so
it worked back then.

Luckily it's very easy to fix; simply implement Comparable on the
SuggestionPriority class - should be a one liner.

-- Tor