You can see, using Trace[ ]that function Entropy[ ]ends with using Tally[ ]to calculate the frequency of each state (numbers in this case).
So for example
Entropy[{1,2,3,4}, SameTest->(Abs[
Tally[{1,2,3,4}, SameTest->(Abs[
-> {{1, 3}, {2, 1}}
{1,3,4} {2}
Tally[{2,1,3,4}, SameTest->(Abs[
-> {{2, 2}, {1, 2}}
{2,4} {1,3}
(2,2) vs (3,1) , , .
, - , SameTest , .
Edit
:
,
a === b && b === c Implies a === c
.
2 === 4 && 4 === 1 but 2 !=== 1