Permalink
Browse files

Make `camp-info -a` show camps in a sane deterministic order

  • Loading branch information...
1 parent 312b6b3 commit f9711f3c457ab433de5b83412fb5f8b0eb21c66e @jonjensen jonjensen committed Sep 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Camp/Master.pm
View
@@ -676,7 +676,7 @@ sub get_camp_info {
sub get_all_camp_info {
my $username = shift;
my $dbh = dbh();
- my $sth = $dbh->prepare('SELECT camp_number,camp_type,create_date,comment FROM camps WHERE username = ?');
+ my $sth = $dbh->prepare('SELECT camp_number,camp_type,create_date,comment FROM camps WHERE username = ? ORDER BY camp_number');
my $rc = $sth->execute($username);
my $out = "Camp #\tCamp Type\tCamp Creation Date\t\tComment\n";
while ( my $row = $sth->fetchrow_hashref() ) {

0 comments on commit f9711f3

Please sign in to comment.