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