third_party: Update waf to verison 2.0.23
[bbaumbach/samba-autobuild/.git] / third_party / waf / waflib / extras / msvs.py
index 8aa2db0b751ccb9ea957a1a1011714bd82a477e8..03b739f849c034ac52ae5a2405d4ace6e42ec702 100644 (file)
@@ -787,8 +787,12 @@ class msvs_generator(BuildContext):
                self.collect_dirs()
                default_project = getattr(self, 'default_project', None)
                def sortfun(x):
-                       if x.name == default_project:
+                       # folders should sort to the top
+                       if getattr(x, 'VS_GUID_SOLUTIONFOLDER', None):
                                return ''
+                       # followed by the default project
+                       elif x.name == default_project:
+                               return ' '
                        return getattr(x, 'path', None) and x.path.win32path() or x.name
                self.all_projects.sort(key=sortfun)