hello i posted a couple weeks ago about how to sort a list and got awesome responses as to how. i am trying to sort a list that looks like this
Code:
(
(("PANEL-MARK" "E-102")("Qty" 1) (1917.09 839.649 0.0))
(("PANEL-MARK" "E-101")("Qty" 1) (1917.09 839.649 0.0))
(("PANEL-MARK" "E-104")("Qty" 1) (1917.09 839.649 0.0))
(("PANEL-MARK" "E-102")("Qty" 1) (1917.09 839.649 0.0))
(("PANEL-MARK" "E-102b")("Qty" 1) (1917.09 839.649 0.0))
(("PANEL-MARK" "E-103")("Qty" 1) (1917.09 839.649 0.0))
(("PANEL-MARK" "E-102a")("Qty" 1) (1917.09 839.649 0.0))
)
i need to sort is by the "E-###" place so the (cadr (assoc "PANEL-MARK")) the issue is that some of the marks will have a character after them like a b c d and i need it to sort the list by this character too if it does have it or atleast group them all together. my list is getting sorted like this..
Code:
(
(("PANEL-MARK" "E-101")("Qty" 1) (1917.09 839.649 0.0))
(("PANEL-MARK" "E-102")("Qty" 1) (1917.09 839.649 0.0))
(("PANEL-MARK" "E-102b")("Qty" 1) (1917.09 839.649 0.0))
(("PANEL-MARK" "E-102a")("Qty" 1) (1917.09 839.649 0.0))
(("PANEL-MARK" "E-102")("Qty" 1) (1917.09 839.649 0.0))
(("PANEL-MARK" "E-103")("Qty" 1) (1917.09 839.649 0.0))
(("PANEL-MARK" "E-104")("Qty" 1) (1917.09 839.649 0.0))
)
where the E-102's are the issue. any way to fix this to come out in order? 102 102a 102b or at least maybe group the 102's together?