I got the original one working by just parsing the thrid number to the front but when we threw an even bigger file at it we had memory errors.

I then tried the function you just sent and it threw an error that length cannot be less than zero

Guy im making this for also gave me a new requirement haha. After it groups those third numbers together it then has to order it by the second number which is a time code. Oh the joy.