title: jenkins groovy pipeline sorting
body: <p>it is not possible to correctly sort the sheet.</p>
  <p>script:</p>
  <pre><code>import groovy.json.JsonSlurper
  
  if (TAGS != 'all') {
      return []
  }
  
  def image_id = []
  
  def projectList = new URL(&quot;https://gitlab.ru/api/v4/search?scope=projects&amp;search=$PROJECT&amp;private_token=$GITLAB_JENKINS_TOKEN&quot;)
  def projects = new groovy.json.JsonSlurper().parse(projectList.newReader())
  projects.each {
   project_id = it.id
  }
  
  def repository_name = &quot;$NAME_REPOSITORY&quot;
  def id = repository_name.tokenize('/ ')[-1].tokenize('.')[0]
  def repository_id = id
  
  def imageList = new URL(&quot;https://gitlab.ru/api/v4/projects/$project_id/registry/repositories/$repository_id/tags?per_page=100&amp;private_token=$GITLAB_JENKINS_TOKEN&quot;)
  def image = new groovy.json.JsonSlurper().parse(imageList.newReader())
  image.each {
  image_id.add(it.name)
  }
  
  
  return image_id
  </code></pre>
  <p>result</p>
  <p>118/
  119/
  120/
  121/
  79/
  80/
  ...</p>
  <p>collestions doesn't help.
  What are the ways to sort the final sheet</p>