added possibly unnecessary sort in subsets command