Closed ajslater closed 11 years ago
Actually, this isn't quite right. The terms should be sorted in descending order. Right now they are descending in ascending order.
In addition, issue #3 requests some unit tests to test the functionality of addTerm()
. Please add those in there.
Fixed the Sort order and added a unit test. The test can be run with 'ant test', of course.
:+1: Thanks AJ, looks perfect.
Sorting of terms by implementing java Comparable interface on Terms and using the Collections sort function.