julia> NamedTuple{(:a,:b)}((; b=2, a=1))
(a = 1, b = 2)
julia> NamedTuple{(:a,:b), NTuple{2,Int}}((; b=2, a=1))
(a = 2, b = 1)
Curious, is not it?
julia> NamedTuple{(:a,:b)}((; b=2, a=1))
(a = 1, b = 2)
julia> NamedTuple{(:a,:b), NTuple{2,Int}}((; b=2, a=1))
(a = 2, b = 1)
Curious, is not it?
Bug is fixed on master (if link breaks, Github issue #44132 fixes #44086)