From: Ash Berlin Date: Sat, 24 Nov 2007 21:24:53 +0000 (+0000) Subject: Sort tables for consistent output X-Git-Tag: v0.08010~26 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=454a5a423c42cc25f23a04dd86674abfa5fdbd0a;p=dbsrgits%2FDBIx-Class.git Sort tables for consistent output --- diff --git a/lib/SQL/Translator/Parser/DBIx/Class.pm b/lib/SQL/Translator/Parser/DBIx/Class.pm index 262047b..ac91446 100644 --- a/lib/SQL/Translator/Parser/DBIx/Class.pm +++ b/lib/SQL/Translator/Parser/DBIx/Class.pm @@ -65,7 +65,7 @@ sub parse { } - foreach my $moniker (@monikers) + foreach my $moniker (sort @monikers) { my $source = $dbixschema->source($moniker); @@ -111,7 +111,7 @@ sub parse { my %created_FK_rels; - foreach my $rel (@rels) + foreach my $rel (sort @rels) { my $rel_info = $source->relationship_info($rel);