Uploaded code for q2-sort.rb