Ensure that the basket is sorted while preparing itemsets.

This is so that a,b and b,a do not end up as two separate baskets.