my $idx = 0;
return map { $self->_inline_slot_initializer($_, $idx++) }
- $self->get_all_attributes;
+ sort { $a->name cmp $b->name } $self->get_all_attributes;
}
sub _inline_slot_initializer {
sub _attributes {
my $self = shift;
- $self->{'attributes'} ||= [ $self->associated_metaclass->get_all_attributes ]
+ $self->{'attributes'} ||= [
+ sort { $a->name cmp $b->name }
+ $self->associated_metaclass->get_all_attributes
+ ]
}
## method