projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
6ed1cd2
)
fix sort
Rafael Kitover [Tue, 23 Mar 2010 05:56:12 +0000 (
05:56
+0000)]
lib/DBIx/Class/Row.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Row.pm
b/lib/DBIx/Class/Row.pm
index
07cfe71
..
7716985
100644
(file)
--- a/
lib/DBIx/Class/Row.pm
+++ b/
lib/DBIx/Class/Row.pm
@@
-364,7
+364,7
@@
sub insert {
$source,
{ $self->get_columns },
keys %auto_pri
- ? { returning => [ sort { $auto_pri{$a} <=> $auto_pri{$b} } keys %auto_pri ] }
+ ? { returning => [ sort { $auto_pri{$a} cmp $auto_pri{$b} } keys %auto_pri ] }
: ()
,
);