title: Sorting a list string paths in jenkins pipeline
body: <p>I'm trying to sort an array of file paths but it seems to not do its job.</p>
  
  <pre><code>def files = findFiles(glob: "**/vars/*.txt")
  files = files.sort()
  echo "Found the following documentation files: ${files}"
  </code></pre>
  
  <p>The <code>.sort()</code> or <code>.sort(false)</code> does not have an effect on the list containting something like <code>[vars/test.txt, vars/tmp.txt, ...]</code></p>
  
  <p>How do sort this a list with path within a jenkins pipeline?</p>