Hello, I need your valuable help. I ask you about the situation. I have a table with 4 fields, one of which is a checkbox (select field) Some checkbox fields are already selected by default, and they are messy. what I need to do is to order at the beginning only those selected and those that are unchecked until the end This is the code:
input#buscarUA.form-control(type='text', placeholder='Escribe el texto a encontrar', style='width:25%;')
br
table#tablausuariosagregar.table.table-bordered.table-hover(data-toggle='table', data-query-params='queryParams', data-pagination='false', data-search='false', data-height='400')
thead(style="font-size:12px;background-color:rgb(233,236,239);")
tr
th Seleccionar
th Perfil
th Nombre
th Cuenta
tbody
each usuario,index in datos.usuarios
tr(style='background-color:243,243,243;font-size:12px;')
td
input#checkusers(data-perfil=''+usuario.perfil,onclick="get_values_usuarios_seleccionados();",class='check_user',type='checkbox', value='#{usuario.pk}')
td #{usuario.perfil}
td #{usuario.nombre}
td #{usuario.cuenta}