Showing files from a folder in a specific order

I have a form that when filled out generates a file within a certain folder.
I list the files from that folder and show the contents of those files.
Now my question is, how can I show them in a specific order?
At the moment it shows them in alphabetical order.
Thanks for your help.
EDIT:

I will try to post my code:

<?php 
		$path='Rb-Admin/inc/News';
$files=scandir($path);
//print_r($files);
foreach ($files as $key => $value) {
    if($value!="." && $value!=".." && $value!=".kite")
    {
        print_r(file_get_contents($path."/".$value));
    }
}
		?>

The most general-purpose way of ordering data is to get the data into an array and use usort() with a call-back function that orders the data the way you want.

Sponsor our Newsletter | Privacy Policy | Terms of Service