Fixed so that you can sort a deck. Error handling on empty deck.
More Error handling on empty deck.