More fixes to VSProject sorting algorithm