awesome! thanks!
I found another way myself:
PHP Code: 
<?php
function sortByOneKey(array $array$key$asc true) {
    
$result = array();
       
    
$values = array();
    foreach (
$array as $id => $value) {
        
$values[$id] = isset($value[$key]) ? $value[$key] : '';
    }
       
    if (
$asc) {
        
asort($values);
    }
    else {
        
arsort($values);
    }
       
    foreach (
$values as $key => $value) {
        
$result[$key] = $array[$key];
    }
       
    return 
$result;
}

$loadxml_folder_info simplexml_load_file('http://www.mediafire.com/api/folder/get_info.php?folder_key=wl7j50kmccaci');
$max $loadxml_folder_info->folder_info->file_count;
$output '';
$array = array();
for (
$i 0$i $max$i++) {
    foreach(
$loadxml_folder_info->folder_info->files->file[$i]->quickkey as $mf_quickkey){
        
$subarray = array();
        
$subarray['key'] = (string)$loadxml_folder_info->folder_info->files->file[$i]->quickkey;
        
$subarray['name'] = (string)$loadxml_folder_info->folder_info->files->file[$i]->filename;
    }
    
$array[] = $subarray;
}
$sortedByNameAsc sortByOneKey($array'name');
?>
but I guess yours is better and less complicated
Mr. Goodie2Shoes Reviewed by Mr. Goodie2Shoes on . MediaFire API: want to sort... Hello again, I am using MediaFire's API to share my stuff... I just post the folder link and the files are automatically parsed... and this is the code snippet that I use (including an example): <?php $loadxml_folder_info = simplexml_load_file('http://www.mediafire.com/api/folder/get_info.php?folder_key=wl7j50kmccaci'); $max = $loadxml_folder_info->folder_info->file_count; $output = ''; for ($i = 0; $i < $max; $i++) { $mf_url_link = Rating: 5