<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -126,7 +126,7 @@ module SearchDo
         add_attributes_to(options[:attributes],cond)
         cond.set_max   options[:limit] unless options[:count]
         cond.set_skip  options[:offset]
-        cond.set_order translate_order_to_he(options[:order]) if options[:order]
+        cond.set_order translate_order_to_he(options[:order]) unless options[:order].blank?
         return cond
       end
       </diff>
      <filename>lib/search_do/backends/hyper_estraier.rb</filename>
    </modified>
    <modified>
      <diff>@@ -129,6 +129,14 @@ describe SearchDo::Backends::HyperEstraier do
         @backend.send(:build_fulltext_condition,'',:order=&gt;order).order
       end
 
+      it &quot;translates nil to nil&quot; do
+        translated_order(nil).should == nil
+      end
+
+      it &quot;translates blank to nil&quot; do
+        translated_order(&quot;&quot;).should == nil
+      end
+
       it &quot;translates strings to STRA&quot; do
         translated_order('title ASC').should == 'title STRA'
         translated_order('title asc').should == 'title STRA'</diff>
      <filename>spec/backends/hyper_estraier_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c5ed12d588be777314ed726a9e632e7bea5ffb9a</id>
    </parent>
  </parents>
  <author>
    <name>grosser</name>
    <email>grosser.michael@gmail.com</email>
  </author>
  <url>http://github.com/grosser/search_do/commit/4bedd47f90ca533f5681c02633f5258bac5612f0</url>
  <id>4bedd47f90ca533f5681c02633f5258bac5612f0</id>
  <committed-date>2009-01-05T05:51:27-08:00</committed-date>
  <authored-date>2009-01-05T05:51:27-08:00</authored-date>
  <message>empty order -&gt; no order set</message>
  <tree>8c810044696376e64229200dcbc91280f1125077</tree>
  <committer>
    <name>grosser</name>
    <email>grosser.michael@gmail.com</email>
  </committer>
</commit>
