Welcome, but please follow the advice here so that your code may be read.
And in the post about merge sort.