To do list with sort functions in Ruby