What sort of files are they? The only program I know that sorts as you describe is the e-book manager Calibre.
However if they are music files then someone else may know of program that does same for them.
Surface Pro (2017) vs Surface Pro 4
Where HTML5 is headed next
MacBook Pro v Surface Pro 5
Synology invites you to visit them at Insomnia on 26th – 29th August. Book your tickets now and visit Synology.