the array is already sorted, so the question makes no sense. Plus it is not two arrays, it is just one array. Explain your situation better and post the code you have been trying. Is this school work? That array looks contrived.
Thanks for your quick response but this is not a school work I just wanted to say that I have an array which is a combination of two different arrays let me explain the entire situation:
I have one tab separated array $tData[$i] = {1 name description number etc}
and one more that is $tAddr[$j] = {xyz address city etc}
I am joining these two arrays like $tline[$i] = $tData[$i] . $delim . $tAddr[$j];
My arrays I have shown above are containing multiple similar values as shown above so after joining I am getting the resulting array as
$tline[$i] = {
1 name description number etc xyz address city etc} as you can see I have on $i that increments upto some length I have given.
So my question is that If I will get an array like
$tline[$i] = {
1 name description number etc xyz address city etc
4 name description number etc xyz address city etc}
Here I want to sort the numbers in bold tha should look like
$tline[$i] = {
1 name description number etc xyz address city etc
2 name description number etc xyz address city etc}
Hope this will help me to get some help from experts like you...
Thanks again,
Chittaranjan.