Well if you see the array
Array ( [0] => 0 [1] => 0 [2] => 7 [3] => 0 [4] => 0 [5] => 0 [6] => 0 [7] => 0 [8] => 0 [9] => 0 [10] => 0 [11] => 0 [12] => 0 [13] => 0 [14] => 0 [15] => 0 [16] => 0 [17] => 0 [18] => 0 [19] => 0 [20] => 0 )
apart from [2] => 7 rest all elements have the value of 0. So in a way what i want is to have [2] => 7 to come first in the result and the rest of the order as same.
Array ( [2] => 7 [1] => 0 [10] => 0 [3] => 0 [4] => 0 [5] => 0 [6] => 0 [7] => 0 [8] => 0 [9] => 0 [0] => 0 [11] => 0 [12] => 0 [13] => 0 [14] => 0 [15] => 0 [16] => 0 [17] => 0 [18] => 0 [19] => 0 [20] => 0 )
What is not clear is that [2] => 7 comes 1st but it swaps the position of [0] => 0 and [10] => 0.
Last option for me is to write a manual sorting function for the same.
Please let me know.
Thanx & Regards
Sunil Jambekar