You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-04-09 14:10:34

Ypeka343
Member
Registered: 2024-04-09
Posts: 2

How to sort by crescent number?

Hi! Already googled and can't sort how I want. Some help please smile

At the moment, I have this configuration :

PC-01
PC-02
...
PC-10
PC-100
PC-101
PC-102
PC-11
PC-12
...

Should I add a 0 to get 3 bit?

Thanks by advance,

good day.

Offline

#2 2024-04-09 14:43:53

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: How to sort by crescent number?

"PC-01" is a string not a number so it is  alphabetically sorted.  youc should write PC-0001


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

Board footer

Powered by FluxBB