CMDBuild Forum

numerical order

Hello. 

For asset inventory I have included in the "code" sequentially numbered, but the sort I get: 

10 

11 

12 

13 

14 

15 

16 

17 

18 

19 

20 

21 

22 

etc ... 

Is it possible to sort correctly? 

etc. 

How? 

thanks

"Code" is a string attribute, so this is the right sort

If you want a sort like a numeric attribute you have to align to the left the code value with one or more '0'

('0001', '0002', ... '0010', ecc)

CMDBuild Team