I have an array of size N. I need to sort it by insertion algorithm according to the criterion of the first digit of the number (for example: 124 <36, since 1 <3).