<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -32,12 +32,6 @@ class TableView
       &quot;#{self} #{sort_order}&quot;
     end
   
-    def render_sort_order
-      if active?
-        '&lt;span class=&quot;sort&quot;&gt;%s&lt;/span&gt;' % (ascending? ? '&amp;darr;' : '&amp;uarr;')
-      end
-    end
-
     def reverse_sort_order
       if ascending? then &quot;desc&quot; else &quot;asc&quot; end
     end</diff>
      <filename>lib/column.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,9 +12,15 @@ class TableView
     def header(column)
       label = column.human_name
       field = link_to(label, url_hash_for(column))
-      helpers.content_tag(:th, &quot;#{field} #{column.render_sort_order}&quot;, column.options[:th])
+      helpers.content_tag(:th, &quot;#{field} #{render_sort_order(column)}&quot;, column.options[:th])
     end
 
+    def render_sort_order(column)
+      if column.active?
+        '&lt;span class=&quot;sort&quot;&gt;%s&lt;/span&gt;' % (column.ascending? ? '&amp;darr;' : '&amp;uarr;')
+      end
+    end
+    
     def url_hash_for(column)
       {
         params.sort_by_field_name =&gt; column,</diff>
      <filename>lib/column_renderer.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>69aff86ffe05d20363834ebd62bb75a8cae0032b</id>
    </parent>
  </parents>
  <author>
    <name>Dima Sabanin</name>
    <email>sdmitry@gmail.com</email>
  </author>
  <url>http://github.com/railsmonk/table_view/commit/72dcf8c652dfbcf8e53d33254eeed28f7f01ac3b</url>
  <id>72dcf8c652dfbcf8e53d33254eeed28f7f01ac3b</id>
  <committed-date>2009-04-20T03:06:07-07:00</committed-date>
  <authored-date>2009-04-20T03:06:07-07:00</authored-date>
  <message>removed code smell</message>
  <tree>2acd97d60ed0887e3f0a4f85cd2885ee781448ca</tree>
  <committer>
    <name>Dima Sabanin</name>
    <email>sdmitry@gmail.com</email>
  </committer>
</commit>
