Sorting identical lines

Hello
How to sort the same lines by their lengths?
thank you

this might work

1 Like

thank you