<% content_for :title, "Users" %>

<% content_for :content do %>
  <%= render partial: "users/tabs" %>

  <div class="table-responsive">
    <table class="table table-hover table-striped data-table sort-asc">
      <thead>
        <tr>
          <th>Name</th>
          <th>Email</th>
          <th>Organization Name</th>
          <th>Organization Role</th>
          <th>Invited By</th>
          <th>Expires</th>
        </tr>
      </thead>

      <tbody>
        <% @invites.each do |invite| %>
          <tr class="<%= row_color_class(invite) %>">
            <td><%= invite.name %></td>
            <td><%= invite.email %></td>
            <td><%= invite.organization.name %></td>
            <td><%= t invite.role, scope: "role.organization" %></td>
            <td><%= invite.invited_by.name %></td>
            <% if invite.expired? %>
              <td data-sort="999999999999"><strong>EXPIRED</strong></td>
            <% else %>
              <td data-sort="<%= invite.expires_at.to_i %>"><%= local_time invite.expires_at %></td>
            <% end %>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
<% end %>

<% content_for :title, "Users" %>

<% content_for :content do %>
  <%= render partial: "users/tabs" %>

  <div class="table-responsive">
    <table class="table table-hover table-striped data-table">
      <thead>
        <tr>
          <th>Name</th>
          <th>Email</th>
          <th>Organization Name</th>
          <th>Organization Role</th>
          <th>Invited By</th>
          <th class="sort-asc">Expires</th>
        </tr>
      </thead>

      <tbody>
        <% @invites.each do |invite| %>
          <tr class="<%= row_color_class(invite) %>">
            <td><%= invite.name %></td>
            <td><%= invite.email %></td>
            <td><%= invite.organization.name %></td>
            <td><%= t invite.role, scope: "role.organization" %></td>
            <td><%= invite.invited_by.name %></td>
            <% if invite.expired? %>
              <td data-sort="999999999999"><strong>EXPIRED</strong></td>
            <% else %>
              <td data-sort="<%= invite.expires_at.to_i %>"><%= local_time invite.expires_at %></td>
            <% end %>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
<% end %>

Move sort for expires to column
Move sort for expires to column
