sort_by_first_sym for old Rubies, suggestions from code review

RUBY-676