[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS Update: gleipnir
- To: cvs@lists.cleannorth.org
- Subject: CVS Update: gleipnir
- From: Dan Brosemer <odin@cleannorth.org>
- Date: Sun, 10 Aug 2008 15:51:51 -0401 (EDT)
- List-help: <mailto:cvs-request@lists.cleannorth.org?subject=help>
- List-post: <mailto:cvs@lists.cleannorth.org>
- List-subscribe: <mailto:cvs-request@lists.cleannorth.org?subject=subscribe>
- List-unsubscribe: <mailto:cvs-request@lists.cleannorth.org?subject=unsubscribe>
- Resent-date: Sun, 10 Aug 2008 15:51:54 -0401 (EDT)
- Resent-from: cvs@lists.cleannorth.org
- Resent-message-id: <9SfzzB.A.7sH.wb0nIB@skroob.cleannorth.org>
- Resent-sender: cvs-request@lists.cleannorth.org
Log Message:
-----------
Sort
Modified Files:
--------------
gleipnir/public_html/webmail:
addressbook.pl
Revision Data
-------------
Index: addressbook.pl
===================================================================
RCS file: /cvs/gleipnir/public_html/webmail/addressbook.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lpublic_html/webmail/addressbook.pl -Lpublic_html/webmail/addressbook.pl -u -r1.4 -r1.5
--- public_html/webmail/addressbook.pl
+++ public_html/webmail/addressbook.pl
@@ -65,9 +65,9 @@
my $gleipnir = $options{-gleipnir};
my $cgi = $gleipnir->cgi;
- my $address = $gleipnir->rpc('addressbook_list');
+ my @address = sort { ($a->{last}.','.$a->{first}) cmp ($b->{last}.','.$b->{first}) } @{$gleipnir->rpc('addressbook_list')};
my $template = $gleipnir->template('webmail/abookedit');
- $template->param(addressbook => $address);
+ $template->param(addressbook => \@address);
return $gleipnir->body($template->output);
};
- Prev by Date: CVS Update: cleannorth.org
- Next by Date: CVS Update: cleannorth.org
- Previous by thread: CVS Update: gleipnir
- Next by thread: CVS Update: gleipnir
- Index(es):