Working sort for project task lists

Still having some issues with for loop iterations.