I wonder is there any function to sort files in array not in certain order but define by ourself?
I have no idea on how to start the code structure and any hints are welcome...XD
What I want to do is:
I have specific file names such as summary, schedule1 and template2
I would like to sort them according to my preference in the array such as:
1. template2
2. schedule1
3. summary
I want to sort the files at my will instead of using _arraysort() function.
What I mean is I want to set certain files to be always on the 1st list or any files to be specific list.
Is there a way to do so?
Is my explanation clear?