Hi,

I have some patch to apply in order, so I have to sort my list which came from an RPM...

By default my list is sorted like this :
/update/v902002.5_p05.0_00_0
/update/v902002.5_p05.1_08_0
/update/v902002.5_p05.1_08_1
/update/v902002.5_p05.1_08_10
/update/v902002.5_p05.1_08_2
/update/v902002.5_p05.1_08_3
/update/v902002.5_p05.1_08_4
/update/v902002.5_p05.1_08_5
/update/v902002.5_p05.1_08_6
/update/v902002.5_p05.1_08_7
/update/v902002.5_p05.1_08_8
/update/v902002.5_p05.1_08_9

I would love an ansible way to do sort with perhaps a specific option to do like the linux sort with option -V which give me this :

/update/v902002.5_p05.0_00_0
/update/v902002.5_p05.1_08_0
/update/v902002.5_p05.1_08_1
/update/v902002.5_p05.1_08_2
/update/v902002.5_p05.1_08_3
/update/v902002.5_p05.1_08_4
/update/v902002.5_p05.1_08_5
/update/v902002.5_p05.1_08_6
/update/v902002.5_p05.1_08_7
/update/v902002.5_p05.1_08_8
/update/v902002.5_p05.1_08_9
/update/v902002.5_p05.1_08_10

Is there's such an option of sort available ?
If not, is there a way to achieve it ?

Thanks

Regards,

JYL

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/27ac2e36780c46b75b1f43fc805c80f1%40lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to