0

How to sort string list according to their middle element?

Suppose a list = ["David", "Jennifers", "Jacke"] I want to sort by middle element.(v, i, c) in alphabetical order. So sorted list would be ["Jacke", "Jennifers", "David"] https://code.sololearn.com/cHCW35z4rky4/?ref=app

1st Apr 2021, 6:58 AM
Carlos
Carlos - avatar
1 ответ
+ 1
https://code.sololearn.com/c29ctm9787Co/?ref=app
1st Apr 2021, 7:07 AM
TOLUENE
TOLUENE - avatar