README.md in nested_set-1.6.1 vs README.md in nested_set-1.6.2

- old
+ new

@@ -64,10 +64,10 @@ or sorted select: <%= f.select :parent_id, sorted_nested_set_options(Category, lambda(&:name)) {|i, level| "#{'-' * level} #{i.name}" } %> - <% sort_method = lambda{|x, y| x.name.downcase <=> y.name.downcase} %> + <% sort_method = lambda{|x| x.name.downcase} %> NOTE: to sort UTF-8 strings you should use `x.name.mb_chars.downcase` <%= select_tag 'parent_id', options_for_select(sorted_nested_set_options(Category, sort_method){|i, level| "#{'-' * level} #{i.name}" } ) %>