How do I set up equivalence relationships for subsets of a set of integers, such that subsets are only equivalent if they possess the same elements (and use banking ordering described below)?
I am trying to order subsets of a set of numbers (nominally a set of cards).
Assume for now that each suit has an order (CLUBS, DIAMONDS, HEARTS, SPADES) and each Rank has an order (2...10,J,Q,K,A) so that $C4>C3$, and that $C4<D2$. This can be simplified by ordering $C2-SA \equiv 1..52$ etc and thus the set in question contains all elements from one to fifty two, e.g. $\{1..52\}$.
I need to be able to place (by operating on both sets some how) each of the subsets at a unique point in an order such that no two sets are equal unless they contain the exact same elements. Perhaps an example would be helpful here:
$$\begin{matrix}\{4,1\} = \{1,4\}&\text{(1)}\\ \{2,3\} = \{3,2\}&\text{(2)}\\ \{2,3\} \ne \{4,1\}&\text{(3)}\end{matrix}$$
Naturally to me, I would assume that as the subsets $(3)$ sum to the same that they could be considered equivalent, but for my purposes it turns out that summing elements (which would be the operation) is not a sufficient way of operating on both sets some how As this means that two distinct subsets occupy the same place in the ordering. It'd be like having $4=5$.
After looking up a paper on ordering sets, I discovered the banking order which seems like a better way to order subsets.

Note the notion here is similar as to Lexigraphical ordering ( also in the paper in which the digits represent each individual element directly, so the 3rd digit is a 1 or a 0 if the 3rd element is or isn;t present in the subset), but we can no longer use the binary digits as a way of ordering the subsets.
Is there an operation (e.g. $f(setA,setB)$) that would give an equivalence relation between two subsets using Banking ordering? Preferably one that gives this relationship:
$$\begin{cases}1&\text{SetA > SetB}\\-1&\text{SetA < SetB}\\0&\text{SetA}\equiv\text{SetB}\end{cases}$$
Is this possible?
This method gives each set a pair of scores, then a quick comparison:
1. Represent the set by a 52-vector (a1,a2,...,a52)
where aj = 1 if card j is in the set, 0 if card j is not.
2. Calculate A1=a1+2*a2+4*a3+8*a4+...+33554432*a26
3. Calculate A2=a27+2*a28+4*a29+...+33554432*a52
4. Compare set A with set B by comparing A1 against B1.
If they match, compare A2 against B2
I would combine steps 2 and 3 into a single number, but integers don't always go up that high.
In the new ordering, you might need three numbers:
1. A1 = number of cards in the set.
2. A2 = 33554432*a1+...+4*a24+2*a25+a26
3. A3 = 33554432*a27+...+2*a51+a52