- Order groups by descending order of priority. - Order panels by descending order of weight. - Perform sorting after adding project/custom metrics.