((602 602000002 Unsorted 602 393361.75 6462327.52 1 6 1 0 3C93) (601 6010000000 Unsorted 393362.42 6462545.33 1 6 1 0 3C8C) (601 6010006007
Mercure Perth 392616.99 6463873.02 0.5 6 1 0 2D44) (602 6020049148 The Royal On The Waterfront 393962.19 6464248.67 1 6 1 0 2AD5) (602 6020007831 The
Dutch Trading Co 395487.69 6462162.6 1 6 1 0 2827) (602 6020137456 Rockpool Bar & Grill Perth 395512.04 6463352.84 1 6 1 0 2819) (603 6030130659 CBD IGA Plus
Liquor 392447.72 6463977.38 0.5 6 1 0 2587) (603 6030138819 Vintage Wine Sales 393439.89 6464831.22 1 6 1 0 2580) (603 6030002774 John's Food & Liquor Store
393555.46 6464035.13 1 6 1 0 2564) (603 6030002915 BWS - Beer Wine Spirits East Perth 393358.98 6463605.11 0.5 6 1 0 255D) (603 6030004192 Vintage Cellars East Perth 393982.2 6464188.84 1 6 1 0 2556) ) (622 6220047894 Goodearth Hotel 393142.4 6463525.9 0.5 6 1 0 1B00) (622 6220029587 Crown Metropol 395493.24 6463374.86 1 6 1 0 1A90) (636 6360028324 Badlands Bar 392956.22 6464465 0.5 6 1 0 1A58) (637 6370029082 Gilkison Dance Studio 392626.21 6464016.45 0.5 6 1 0 1A3C))
Given the above list I am trying to write a sorted list of list routine and think I am nearly there, but I keep getting an error in the Lambda function - should be all 601's first , then 602's and so on. Never used lambda before and getting a headache
Any help appreciated
(defun orderlist
() ;; takes p_str_list and orders list by p_lic_type (disp "p_str_list" p_str_list)
)
)
)
(disp "p_str_list" p_str_list)
(disp "p_index " p_index)
(disp "p_sort" p_sort)
)