items = [, , , , , , ]
count = 0
sortedItems = []
items.each {|item|
  puts 
  spotToInsert = sortedItems.bsearch_index{|x|
    count += 1
    print 
    gets.start_with?('y')
  } || sortedItems.length 
  sortedItems.insert(spotToInsert, item)
}
p sortedItems