Closed eddycharly closed 5 months ago
/assign tengqm
@sftim i added a more detailed explanation, is it more clear ?
/approve
🤣
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: eddycharly, tengqm
The full list of commands accepted by this bot can be found here.
The pull request process is described here
This PR fixes
sortTypes
func by considering the package when sorting, in case both types have the same name.Let's say a type
Foo
exists inv1
andv2
. If we consider only the name (Foo
) we can't decide on the order, it will be random from one run to the other. In this case, we can additionally consider the package, it becomes obvious thatv1
should come beforev2
and the order is now predictible.Fixes #350