Fixed compareTo in WeightedItem (it was reversed).