I'd like to sort a lists of strings the following way:
input_list = ["1", "22", "333", "4444"] # This list can have an odd amount of items.
# Some code
output_list = ["4444", "22", "333", "1"]
The only thing I need is to sort a list so I do not get a large length string next to another large size string.
This sure will not always be possible due to having not enough large or small strings, but the sorting algorithm should try to not have that many large strings next to other large strings.
Thanks in advance.