Re: Priorities are badly sorted.

Tor Norbye <[email protected]> Thu, 17 Jul 2003 10:14:32 -0700
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Organization Sun Microsystems, Inc
Message-ID <[email protected]>
Tor Norbye wrote:
> 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.
> 

Ok it's fixed now; get tasklist/api version 1.2 (in the trunk for NetBeans 4.0,
or in the dev35 branch for NetBeans 3.5.)

If I get some time tonight I'll update the download .zip files on
tasklist.netbeans.org for those of you who don't build your own
versions from CVS.

-- Tor