Unverified Commit 1f06130f authored by Luc Didry's avatar Luc Didry
Browse files

Fix #31 — Fix order of list’s config params

parent cbc02daa
...@@ -7896,9 +7896,9 @@ sub get_db_field_type { ...@@ -7896,9 +7896,9 @@ sub get_db_field_type {
## Sort function for writing config files ## Sort function for writing config files
sub _by_order { sub _by_order {
(($Sympa::ListDef::pinfo{$main::a || ''}{'order'} || 0) (($Sympa::ListDef::pinfo{$a || ''}{'order'} || 0)
<=> ($Sympa::ListDef::pinfo{$main::b || ''}{'order'} || 0)) <=> ($Sympa::ListDef::pinfo{$b || ''}{'order'} || 0))
|| (($main::a || '') cmp($main::b || '')); || (($a || '') cmp($b || ''));
} }
## Apply defaults to parameters definition (%Sympa::ListDef::pinfo) ## Apply defaults to parameters definition (%Sympa::ListDef::pinfo)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment