Is there an example of how to use std.meta.declList?
Looking at the source code just makes me more confused than ever. It looks like the Decl type parameter should contain at least a “name” field, but it is quite guaranteed not to work, if used that way.
I also think that link above explains that function, it seemed that this existed because there where hash maps used for declarations that lost the order of the declarations, (and it seems declList was used to sort that unordered hash maps keys to get a stable ordering), but that change made it so that the used hash map preserved the ordering, which is why they then had a stable ordering, no longer needing to create a stable ordering artificially through sorting.
I think you are better of using something like @typeInfo(A).Struct.decls.
It may make sense to create an issue about deprecating/removing that function.