lib/sentence_builder/builder.rb
def get_nodes(sorted = true)
      SentenceBuilder::Helper.to_boolean(sorted) ? @nodes.sort_by{|i| i.sort_by_value} : @nodes
    end
def get_nodes(sorted = true)
      SentenceBuilder::Helper.to_boolean(sorted) ? @nodes.sort_by{|i| i.sort_by_value} : @nodes
    end
Return nodes by sorting option