Updated 'sorting.rb'