make it possible to group charts by priority
Merge branch '4.2/chart-by-priority' into 4.2-trunk