title: sorting files based on its creation date in android
body: <p>I want list of file based on my creation date.
  When i updating any if images and trying to retrive all images,then orders are changed randomly.</p>
  
  <p>Here is my code,</p>
  
  <pre><code> File[] files = parentDir.listFiles();
      for (File file : files) {
  // I am getting files here
      }
  </code></pre>
  
  <p>Any help..</p>