fixing the sort and doing some ilproject changes