cars = [["일반", 10], ["경차", 11], ["장애인", 12], ["장애인", 11]]
classification = ["장애인", "경차", "일반"]
answer = []

cars.sort(key=lambda x: x[1])

for i in range(len(classification)):
    for j in range(len(cars)):
        if cars[j][0] == classification[i]:
            answer.append(cars[j])

print(answer)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: