update sorting in layouts model
--the new priorities take into account the layout name to be ordered as a last criteria