I am trying to sort a list of car names alphabetically. The list is based on a JSON feed that is sorted differently. Car names are nested in a deeper level of the feed. Here's what I have now without sorting:
<?php
$response = file_get_contents( 'http://api.autoit.dk/car/GetCarsExtended/391B093F-BB4A-45AA-BEFF-7B33842401EA' );
$myArray = json_decode($response, true);
foreach($myArray as $item):
echo $item['FabrikatNavn'].' '.$item['ModelNavn'].' '.$item['VariantBetegnelse'];
?>
Anyone have a suggestion for how to make the list of car names show alphabetically? As you see, the feed comes from this url: http://api.autoit.dk/car/GetCarsExtended/391B093F-BB4A-45AA-BEFF-7B33842401EA
The car names that I want to sort it by are nested inside the feed like this: DealerCarExtended --> FabrikatNavn