public void reduce(Text anchorText, Iterator<AnchorTextTarget> values,
OutputCollector<Text, ArrayListWritable<AnchorTextTarget>> output, Reporter reporter)
throws IOException {
outList.clear();
while (values.hasNext()) {
outList.add(new AnchorTextTarget(values.next()));
}
Collections.sort(outList);
output.collect(anchorText, outList);
}