Organizing members is not working as expected. If you use Lambda expressions, they are simply thrown at the end of class without any reordering.
How it is now:
Visual BasicClass C
Dim _A As Integer
Function F()
End Function
Sub S()
End Sub
Public Z = Function()
End Function
Public A = Function()
End Function
End Class
How it should be:
Visual BasicClass C
Dim _A As Integer
Public A = Function()
End Function
Public Z = Function()
End Function
Function F()
End Function
Sub S()
End Sub
End Class
Thank you for pointing out this issue and providing the code sample. The Organize Members feature excludes some initialized fields from sorting because it can change logic of instance parent type initialization. We agree that this check is redundant when a field is initialized by a lambda expression and it should be sorted by name. We will correct the current behavior and inform you of our progress.