Basta che leggi tutti i nomi dei file e li metti in un array, poi ordini l'array secondo le richieste dell'utente.
Regole del Forum