Sorting cards by rank and suit with php