Change Order of Sections Using Custom Fields

Have 5 custom fields:
the first 4 are your sections and the last would be your order identifier.

CASE 1

If you want to have the order simply revsered have the last field be a dropdown with “normal” or “reversed”. (You could even say “random”… the world is your oyster)

$s1 = '<section id="1">$customfield1</section>';
$s2 = '<section id="2">$customfield2</section>';
$s3 = '<section id="3">$customfield3</section>';
$s4 = '<section id="4">$customfield4</section>';
if ($customfieldorder == 'reversed') {
echo $s4.$s3.$s2.$s1;
}else{ 
echo $s1.$s2.$s3.$s4;
}

CASE 2

With these 4 fields, they could simply put the info that they want to appear first in the first field and next information in the next field etc. Then your code would be simply: (users would choose order to display simply by where they put the information.

$s1 = '<section id="1">$customfield1</section>';
$s2 = '<section id="2">$customfield2</section>';
$s3 = '<section id="3">$customfield3</section>';
$s4 = '<section id="4">$customfield4</section>';

echo $s1.$s2.$s3.$s4;