You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// NOTE sometimes projects are in wrong order, seems to be related to messing up your unity registry, the keys are received in created order (so if you had removed/modified them manually, it might return wrong order instead of 0 - 40)
103
+
// sometimes projects are in wrong order, seems to be related to messing up your unity registry, the keys are received in created order (so if you had removed/modified them manually, it might return wrong order instead of 0 - 40)
104
104
// thats why need to sort projects list by modified date
105
105
// sort by modified date, projects without modified date are put to last, NOTE: this would remove projects without modified date (if they become last items, before trimming list on next step)
106
106
projectsFound.Sort((x,y)=>
107
107
{
108
-
if(x.Modified==null&&y.Modified==null)return-1;// was 0
108
+
if(x.Modified==null&&y.Modified==null)return0;// cannot be -1, https://stackoverflow.com/a/42821992/5452781
//return x.Modified.Value.CompareTo(y.Modified.Value); // BUG this breaks something, so that last item platform is wrong (for project that is missing from disk) ?
0 commit comments