title: How to arrange in alphabetical order using php
body: <p>I have 2 plain text files that contain some words, like:</p>
  
  <p><strong>File 1</strong></p>
  
  <pre><code>Aarhus
  Abbott
  Abbott's
  Abel
  Abelian
  Abelson
  Abelson's
  Aberdeen
  Aberdeen's
  </code></pre>
  
  <p><strong>File 2</strong></p>
  
  <pre><code>Acapulco
  Ackerman
  Acta
  Adam
  Adams
  Adamson
  </code></pre>
  
  <p>This is just a sample list, the files contain more than 10000 entries and the words can be placed in any order. but one thing that makes it easy is that every single line contains only one word. Now, I know how to read these values using php one by one, but I cant understand <strong>how to merge these two files and sort them alphabetically.</strong> Can anyone suggest me how to do the sorting part?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>One more thing to mention: As you can see, there are some words containing a <code>'</code> single quote. Please suggest me the answers that consider this parameter while sorting.</p>
  
  <p><strong>FURTHER EDIT</strong></p>
  
  <p>I want to eliminate duplicate values from the files. Like if there are 2 same words, then it should be taken only once.</p>