Hello guys .
I have a list of elements and I would like to resort them according to the next list .
(setq lst '(("plywood" "10x17" 5) ("plywood" "10x12" 2) ("plywood" "14x12" 14) ("plywood" "14x11" 4)
("steel" "4x4" 8) ("beam" "12x12" 9) ("beam" "12x10" 6) ("beam" "12x7" 3)
))
The sorting must be according to the second number after the x operator in the second element of each pair without changing their
the other pair's locations .
The result resorted like this
(setq lst '(("plywood" "10x
12" 2) ("plywood" "10x
17" 5) ("plywood" "14x
11" 4) ("plywood" "14x
12" 14)
("steel" "4x4" 8 ) ("beam" "12x
7" 3) ("beam" "12x
10" 6) ("beam" "12x
12" 9)
))
I Hope that is clear and easy enough to you masters to help me with it , and please do not hesitate to ask for any clarification .
Thanks in advance