title: PowerShell sorting problem of decimal numbers
body: <p>I have an array with decimal numbers like this:</p>
  
  <pre>
  reihenfolge
  ###########
  100000.00001
  1000000.00001
  101000.00001
  101010.00001
  101020.10001
  </pre>
  
  <p>If I sort it without parameters I get the order above. I would expect that the second number is the last entry.
  I also tried to sort as int or as version or with regex, but until now I didn't find the way I expect.</p>
  
  <pre><code>$script:array = $script:array | Sort-Object reihenfolge
  
  $script:array = $script:array | Sort-Object { [regex]::Replace($_.reihenfolge, '\d+', { $args[0].Value.PadLeft(20) }) }
  
  $script:array = $script:array | Sort-Object { $_.reihenfolge -as [version] }
  
  $script:array = $script:array | Sort-Object { $_.reihenfolge -as [int] }
  </code></pre>