Like I said there are several ways to do this. And of course ProgramFOX's solution with LINQ is correct. So here is an alternative using
List.Sort method[
^]:
sampleList.Sort((x,y) => x.Length - y.Length);
The benefit is you are not creating a new instance of List.