plugin > analytics > chart > caption : sort alpahetically
All checks were successful
Deploy Preprod / Build and Deploy to Preprod (push) Successful in 31s

This commit is contained in:
isUnknown 2026-03-03 13:29:02 +01:00
parent bcead4e694
commit 075e511a6a
2 changed files with 2 additions and 2 deletions

View file

@ -11604,7 +11604,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
let maxValue;
if (showPerPage) {
const topPages = this.data.visitsByPage ? Object.keys(this.data.visitsByPage) : [];
const pages = topPages;
const pages = topPages.sort((a, b) => a.localeCompare(b));
datasets = pages.map((page, i) => {
const color2 = CHART_COLORS[i % CHART_COLORS.length];
const values = allDays.map(

View file

@ -276,7 +276,7 @@ export default {
const topPages = this.data.visitsByPage
? Object.keys(this.data.visitsByPage)
: [];
const pages = topPages;
const pages = topPages.sort((a, b) => a.localeCompare(b));
datasets = pages.map((page, i) => {
const color = CHART_COLORS[i % CHART_COLORS.length];
const values = allDays.map(