cars = [["일반", 10], ["경차", 11], ["장애인", 12],["장애인", 10]] items = {"장애인":0, "경차":1, "일반":2} cars.sort(key = lambda x:(items[x[0]],x[1])) print(cars)
To embed this project on your website, copy the following code and paste it into your website's HTML: