Project

General

Profile

Patch #252 ยป sort_users.diff

Rocco Stanzione, 2008-02-03 11:02

View differences:

app/views/projects/settings/_members.rhtml (working copy)
1 1
<%= error_messages_for 'member' %>
2 2
<% roles = Role.find_all_givable %>
3
<% users = User.find_active(:all) - @project.users %>
3
<% users = User.find_active(:all,:order => "users.firstname,users.lastname") - @project.users %>
4 4
<% # members sorted by role position
5 5
   members = @project.members.find(:all, :include => [:role, :user]).sort{|x,y| x.role.position <=> y.role.position} %>
6 6
   
    (1-1/1)