Fixed out of bounds error when sorting cards.
Reformat whitespace to use space instead of tabs.