<?php

$file_list = array();
foreach (glob('*.js') as $file) {
    $file_list[] = $file;
}
echo json_encode($file_list);

<?php

$file_list = array();
foreach (glob('*.js') as $file) {
    $file_list[] = $file;
}
sort($file_list);
echo json_encode($file_list);

?>
Sort plugins list by name
Sort plugins list by name
