public String projectsWithPage(@PathVariable("page") String page,
@PathVariable("sort") String sort,Model model) {
int pageNum = WebUtil.getPageNumber(page);
int size = WebUtil.getPageSize(page);
Weaver currentWeaver = weaverService.getCurrentWeaver();
<BUG>model.addAttribute("projects", projectService.getProjects(currentWeaver,sort, pageNum, size));
model.addAttribute("projectCount", projectService.countProjects(sort));
</BUG>
model.addAttribute("pageIndex", pageNum);
model.addAttribute("number", size);

public String projectsWithPage(@PathVariable("page") String page,
@PathVariable("sort") String sort,Model model) {
int pageNum = WebUtil.getPageNumber(page);
int size = WebUtil.getPageSize(page);
Weaver currentWeaver = weaverService.getCurrentWeaver();
model.addAttribute("projects",
projectService.getProjects(currentWeaver, null, null, sort, pageNum, size));
model.addAttribute("projectCount", projectService.countProjects(null, null, sort));
model.addAttribute("pageIndex", pageNum);
model.addAttribute("number", size);
