smart-sorting of implicitly defined file list