switching how templates are included
made sure the folder id is always set
shifted the order to make sure things come up properly in the file list
sorting the file list to make sure each link is correct;
resolves http://bugs.web2project.net/view.php?id=1347