cacti icon indicating copy to clipboard operation
cacti copied to clipboard

Is it possible to change format?is

Open aliuzzz opened this issue 2 years ago • 10 comments

image like this it should be changed to 1 2 3 4 5 6 7 8 9 10  but not 1 10 2 3 4 5 6 7 8 9

aliuzzz avatar Nov 29 '23 06:11 aliuzzz

What are you talking about?

TheWitness avatar Nov 30 '23 03:11 TheWitness

The normal sorting is from 1 to 10, but current sorting is 1 10 23456789

aliuzzz avatar Nov 30 '23 06:11 aliuzzz

What page and section?

TheWitness avatar Nov 30 '23 12:11 TheWitness

Adding this for the devs just in case.

https://mariadb.org/10-7-preview-feature-natural-sort/

TheWitness avatar Nov 30 '23 12:11 TheWitness

@aliuzzz,

Waiting on you dude.

TheWitness avatar Dec 02 '23 13:12 TheWitness

image In this page

aliuzzz avatar Dec 06 '23 01:12 aliuzzz

There are really a few things that need to be done on that page. Natural sorting is possible in MariaDB starting in 10.7, but for a static list like this, it can also be sorted in PHP. The bit that needs some work is a topic of another conversation.

Since we are feature complete in the 1.2.x branch, we'll have to consider this for the develop branch which is labeled 1.3 right now.

TheWitness avatar Dec 06 '23 12:12 TheWitness

There are really a few things that need to be done on that page. Natural sorting is possible in MariaDB starting in 10.7, but for a static list like this, it can also be sorted in PHP. The bit that needs some work is a topic of another conversation.

Since we are feature complete in the 1.2.x branch, we'll have to consider this for the develop branch which is labeled 1.3 right now.

So can I temporarily solve this problem by upgrading the database to 10.7 or above

aliuzzz avatar Dec 08 '23 00:12 aliuzzz

No.

TheWitness avatar Dec 08 '23 01:12 TheWitness

@aliuzzz,

I'm just getting back to 1.3 aka (develop branch) work. I'm on vacation this week, but will tackle this as low hanging fruit. Can you get an environment working on 1.3 between now and next week so that you can confirm the new behavior?

It'll be MariaDB 10.7++ for now as MySQL will need to merge MariaDB's code to be compatible and has not as far as I can tell.

Larry

TheWitness avatar Oct 21 '24 14:10 TheWitness

@aliuzzz,

This is resolved now. Only MariaDB 10.7++. MySQL has not adopted this function. Not sure if they will.

Larry

TheWitness avatar Nov 09 '24 17:11 TheWitness

Thank you very much for your attention to this issue. So May I update graph_templates.php to version 1.3 and it will be ok?

aliuzzz avatar Nov 10 '24 12:11 aliuzzz

I would not. We are in heat dev mode in develop. It's not ready for prod.

TheWitness avatar Nov 11 '24 01:11 TheWitness