Merge branch 'thubrecht/ordre-consos' into 'master'

Corrige le tri des articles dans K-Psul

See merge request klub-dev-ens/gestioCOF!502
This commit is contained in:
Ludovic Stephan 2021-10-12 16:05:26 +02:00
commit 6d824a58be

View file

@ -430,7 +430,7 @@ $(document).ready(function() {
var $after = articles_container.find('#data-category-'+article['category_id']);
articles_container
.find('.article.data-category-'+article['category_id']).each(function() {
if (article['name'].toLowerCase < $('.name', this).text().toLowerCase())
if (article['name'].toLowerCase() < $('.name', this).text().toLowerCase())
return false;
$after = $(this);
});