title: Sort combination of data based on maximum of occurrence
body: <p>I have a combination of data of RGBA values in a memory table I got from Rest Response Adapter like these for each row:</p>
  
  <pre><code>"R", "A"
  "B"
  "A","R"
  "R","G"
  "B"
  ...
  </code></pre>
  
  <p>I need to sort these data based on the maximum of occurrence or repeat inside the table. For example values <code>"R","A" = "A","R</code>this mean the count of this value is 2 and so on.</p>
  
  <p>I was thinking to use Dictionary but it does not have a method to count values and consider RA = AR. And if I loop for each value it will take very long time so how I should solve this problem ?</p>