Changes in sort.rb

25th Sep, added Function in sort.rb