How to process on values before sorting them?
问题 I previously posted this question on this portal for which I got a satisfactory solution. Now my problem has evolved a bit. What if my XML in the linked question is updated so that my numbers have a unit associated with them like cm , m , in , px etc. So that the new XML is: <root> <a> <b>12cm</b> <e>hello</e> </a> <a> <b>11m</b> <e>how</e> </a> <a> <c>13m</c> <f>are</f> </a> <a> <b>21cm</b> <f>you</f> </a> <a> <d>22cm</d> <e>hello</e> </a> <a> <c>14m</c> <f>hi</f> </a> Now I would first need