}
if (canBeDeleted.size() > 0)
{
// Sort article by pubdate
Collections.sort(canBeDeleted, new ArticleDateComparator());
// Move on from the tail and remove only allowed articles
toRemove = Math.min(toRemove, canBeDeleted.size());
for (int i = 0; i < toRemove; i++)
{