please refer to this link in go4expert to understand the merge sort:- go4expert(dot)com/forums/showthread(dot)php?t=21294