added sorting algorithm to present projects in correct view