build_and_sort.rb