Possibility to sort quotas listing page.

see #154 & #391
Fixing sql query.

see #392
Missing assignement added.

see #392