From Linuxmanr4, 4 Years ago, written in Ruby.
Embed
Download Paste or View Raw

  1. require 'naturally'
  2.  
  3. archivos = ["1.pdf","521.pdf","002.pdf","11.pdf","0850.pdf"]
  4.  
  5. ordenados = Naturally.sort(archivos)
  6.  
  7. puts ordenados