<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>init.rb</filename>
    </added>
    <added>
      <filename>lib/searchlogic/rails_helpers.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -114,6 +114,12 @@ It doesn't get any simpler than that. Adding a search condition is as simple as
     = f.text_field :orders_total_greater_than
     = f.submit
 
+When a Searchlogic::Search object is passed to form_for it will add a hidden field for the &quot;order&quot; condition, to preserve the order of the data. If you want to order your search with a link, just specify the name of the column. Ex:
+
+  = order @search, :by =&gt; :age
+
+This will create a link that alternates between calling &quot;ascend_by_age&quot; and &quot;descend_by_age&quot;. If you wanted to order your data by more than just a column, create your own named scopes: &quot;ascend_by_*&quot; and &quot;descend_by_*&quot;. The &quot;order&quot; helper is a very straight forward helper, checkout the docs for some of the options.
+
 == Use your existing named scopes
 
 This is one of the big differences between Searchlogic v1 and v2. What about your existing named scopes? Let's say you have this:</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -10,4 +10,9 @@ Object.send(:include, Searchlogic::CoreExt::Object)
 ActiveRecord::Base.extend(Searchlogic::NamedScopes::Conditions)
 ActiveRecord::Base.extend(Searchlogic::NamedScopes::Ordering)
 ActiveRecord::Base.extend(Searchlogic::NamedScopes::Associations)
-ActiveRecord::Base.extend(Searchlogic::Search::Implementation)
\ No newline at end of file
+ActiveRecord::Base.extend(Searchlogic::Search::Implementation)
+
+if defined?(ActionController)
+  require &quot;searchlogic/rails_helpers&quot;
+  ActionController::Base.helper(Searchlogic::RailsHelpers)
+end
\ No newline at end of file</diff>
      <filename>lib/searchlogic.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e77b2a476e4fc0313f4a86a456a9f9821c1b6304</id>
    </parent>
  </parents>
  <author>
    <name>binarylogic</name>
    <email>bjohnson@binarylogic.com</email>
  </author>
  <url>http://github.com/binarylogic/searchlogic/commit/0f4b5d68e7edca52ec99a224f76f21a8a545fbc2</url>
  <id>0f4b5d68e7edca52ec99a224f76f21a8a545fbc2</id>
  <committed-date>2009-06-14T20:00:51-07:00</committed-date>
  <authored-date>2009-06-14T20:00:51-07:00</authored-date>
  <message>Add in some basic helpers</message>
  <tree>cebd086827eab8a293835253eb06a73d860a3727</tree>
  <committer>
    <name>binarylogic</name>
    <email>bjohnson@binarylogic.com</email>
  </committer>
</commit>
