sortTotals($totals); return $jsLayout; } }