I believe that the sum of the lengths of diagonals of a regular polygon ($n$-gon) is always greater than or equal to any other irregular polygon ($n$-gon) inscribed in a circle.
For example for a 4-gon, if we consider a regular $4$-gon, then the two diagonals pass through the centre of a circle, resulting in the sum of the diagonals' lengths twice the diameter. Considering any other $4$-gon (irregular), the sum of the lengths of the diagonals is not greater than $2\times$ the diameter.
Case : 5-gon I proved that the sum of the lengths of diagonals in a regular $5$-gon is maximum compared to any $5$-gon (irregular polygon). I used Lagrange's multiplier to prove it.
Case : $n$-gon I tried proving the same for an $n$-gon using Lagrange's multiplier, where we need to maximize the sum of the lengths of all diagonals with respect to $$\theta_1+ \theta_2 + \dots + \theta_n =2\pi,$$ but unable to do the calculation as the number of variables increases. Here $\theta_i$ is the angle subtended to the centre of a circle by the side $a_i$ of the polygon.
I believe that the sum of the lengths of diagonals is maximum if $$\theta_1 = \theta_2 = \dots = \theta_n,$$ which is possible only in a regular polygon.
Edit: same question posted in mathoverflow, https://mathoverflow.net/questions/398248/sum-of-the-lengths-of-all-diagonals-in-a-regular-polygon

Yes this is true (presumably but this is not complete), in fact a proof can be done along these lines, sketch. First you prove that for three points $A,B,C$ on a circle, the maximum of the distance $AB+BC$ for $A$ and $C$ fixed is for $B$ middle of the arc $\overset{\frown}{AC}$. (Here is a proof in French A proof), you should prove also that getting away from the middle of the arc will decrease the distance sum. From that a circular (and averaging) reasoning for any $n$-gone inscribed in a certain circle gives a convergence towards the regular polygone as maximal for the sum of diagonals.
For example here is the figure for a pentagone, for general $n\ge 6$ say $n=6$ you pick the middle of the two arcs: points $P$ and $Q$, take the point that maximises the sum of the three diagonals submerged, it should be inside the arc $\overset{\frown}{PQ}$ etc An animation is possible maybe someone could make this...
EDIT i realised this is more complicated than this anyway i'll keep the answer.