Polystat plugin: Need way to sort results that contain numbers and letters

  • What Grafana version and what operating system are you using?

Grafana v9.2.3
Linux

  • What are you trying to achieve?

As shown in the screenshots below I need a way to sort results in the polystat plugin by letters and numbers ascending.

You can see that our node naming convention is as follows r#i#n#. This causes an issue when trying to sort our node layout by topology using the polystat sorting methods. The issue is that node r1i0n10 will be placed in the panel before r1i0n2, due to standard string sorting limitations. How can I achieve a sorting order that will acknowledge our node naming convention?

Row 1 Column 3 is r1i0n10
Screen Shot 2022-12-19 at 9.04.32 AM

Row 2 Column 4 is r1i0n2
Screen Shot 2022-12-19 at 9.04.48 AM

Is there a way to add a regex to the sorting functionality for specialty cases such as this?

Thanks!