Server code for files. Sorting for Team.