I usually store info in arrays using field names
$array[1]["country"]='Germany',
$array[1]["code"]="GE";
$array[2]["country"]='United Sates"
$array[2]["code"]="US";
$array[3]["country"]='France"
$array[3]["code"]='FR"
I want to get:
$array[1]["country"]='France"
$array[1]["code"]='FR"
$array[2]["country"]='Germany'
$array[2]["code"]="GE";
$array[3]["country"]='US"
$array[3]["code"]="US";
Is there a function to sort on a field (country in this case)
thanks