<% if @users != nil %>
	<div class="ui piled segment">
		<%= render partial: "list", locals: { users: @users, show_controls: true } -%>
	</div>
<% end %>

<% if @users != nil %>
	<div class="ui piled segment">
		<%= render partial: "list", locals: { users: @users.sort_by { |u| u[:user_role] }, show_controls: true } -%>
	</div>
<% end %>

Sort users by user_role in main user list
Sort users by user_role in main user list
