title: a good hash function to generate same hash for same text contents but different order?
body: <p>if i have a block of text as follows:</p>
  
  <pre><code>mkdir a
  mkdir b
  mkdir c
  </code></pre>
  
  <p>and I would like to have a hash function which generates the same hash even if the order of text/characters change (shown below).</p>
  
  <pre><code>mkdir b
  mkdir a
  mkdir c
  </code></pre>
  
  <p>The easy approach is to sort the characters and hash it using a standard hash function. are there any other ways of approaching this problem?</p>