Commit 443cc341 authored by Mat's avatar Mat

template mainDisplay, cohérence des colonnes du tableau

parent 8c58138e
......@@ -53,8 +53,8 @@ class OwnerRepository extends \Doctrine\ORM\EntityRepository
public function findAllForAPIRead()
{
$qb = $this->createQueryBuilder('o')
->orderBy('o.firstname', 'DESC')
->addOrderBy('o.lastname', 'ASC');
->orderBy('o.lastname', 'ASC')
->addOrderBy('o.firstname', 'ASC');
return $qb->getQuery()->getResult();
}
......
......@@ -86,11 +86,11 @@
tr.appendChild(td0);
let td1 = document.createElement('td');
td1.textContent = json[i].firstname;
td1.textContent = json[i].lastname;
tr.appendChild(td1);
let td2 = document.createElement('td');
td2.textContent = json[i].lastname;
td2.textContent = json[i].firstname;
tr.appendChild(td2);
let td3 = document.createElement('td');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment