ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/UI/Inventory.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/UI/Inventory.pm (file contents):
Revision 1.4 by root, Wed Dec 26 21:03:21 2007 UTC vs.
Revision 1.5 by root, Mon May 5 20:22:03 2008 UTC

47sub set_sort_order { 47sub set_sort_order {
48 my ($self, $order) = @_; 48 my ($self, $order) = @_;
49 49
50 $self->{sort} = $order ||= sub { 50 $self->{sort} = $order ||= sub {
51 sort { 51 sort {
52 $a->{type} <=> $b->{type} 52 $b->{count} <=> $a->{count}
53 or $a->{name} cmp $b->{name}
54 } @_ 53 } @_
55 }; 54 };
56 55
57 $self->update_items; 56 $self->update_items;
58} 57}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines