display usage fields in deterministic order
authorIvan Kohler <ivan@freeside.biz>
Wed, 6 Sep 2017 17:29:36 +0000 (10:29 -0700)
committerIvan Kohler <ivan@freeside.biz>
Wed, 6 Sep 2017 17:29:36 +0000 (10:29 -0700)
httemplate/edit/svc_acct.cgi

index 7be5eab..27ea3c5 100755 (executable)
 %   }
 % }
 
-% my %label = ( seconds => 'Time',
-%               upbytes => 'Upload bytes',
-%               downbytes => 'Download bytes',
-%               totalbytes => 'Total bytes',
-%             );
+% tie my %label, 'Tie::IxHash', seconds    => 'Time',
+%                               upbytes    => 'Upload bytes',
+%                               downbytes  => 'Download bytes',
+%                               totalbytes => 'Total bytes',
+% ;
 % foreach my $uf (keys %label) {
 %   my $tf = $uf . "_threshold";
 %   if ( $curuser->access_right('Edit usage') ) {