Topic: ROR Sublist Plugin by Luke Galea

Was wondering how I would go about specifying an "order by" in the edit view of my sublist partial seen here:

<% @task = task %>
  <fieldset>
<div id="<%= "task_#{task.id}" %>">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
    <td align="left" class="normalText" width="136"><%= text_field 'task[]', 'task', :size => 15 %></td>
    <td align="left" class="normalText" width="58"><div id="input2"><%= text_field 'task[]', 'leadTime', :size => 3 %></div></td>
    <td align="left" class="normalText" width="58"><div id="input2"><%= text_field 'task[]', 'duration', :size => 3 %></div></td>
    <td align="left" class="normalText" width="93"><%= task.dateStart %><!--%= hidden_field 'task[]', 'dateStart', :value => '03/08/2007' , :size => 10 %--></td>
    <td align="left" class="normalText" width="98"><%= task.dateTargetEnd %><!--%= hidden_field 'task[]', 'dateTargetEnd', :value => '03/08/2007', :size => 10 %--></td>
    <td align="left" class="normalText" width="83"><%= select('task[]', 'user_id', User.find(:all).collect {|u| [u.firstName, u.id]}) %></td>
    <td align="left" class="normalText" width="164"><%= select('task[]', 'taskTypeID', Tasktype.find(:all).collect {|t| [t.taskType, t.id]}) %></td>
    <td align="left" class="normalText" width="140"><div id="dropdown150"><%= select('task[]', 'dependencyTaskID', Task.find(:all, :conditions => { :project_id => params[:id], :critical => 1 }).collect {|t| [t.task, t.id]}, :include_blank => true) %></div></td>
    <td align="left" class="normalText" width="40"><%= select('task[]', 'critical', { "Yes" => 1, "No" => 0}) %></td>
    <td align="left" class="boldTitle" width="10"><%= sub_list_remove_link task, 'Tasks', 'x' %></td>
</tr>
</table>
</div>
  </fieldset>

I'd like to order the listing by leadTime, which is the second cell of this table.  Tasks are the sublist of projects and this partial is displayed on the project edit view.  I'm sure it's simple...I just can't see it being a newbie....(by the way, how long do I get to keep calling myself that?)

I sure have received a lot of help from all of you pros out there on this forum....and I thank you for that!