Allow union sort

Add method to indicate the columns to use to sort the union results.