Changeset 818


Ignore:
Timestamp:
04/11/13 11:17:14 (9 years ago)
Author:
ramonb
Message:
  • ascending / descending is other way around
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.4/web/addons/job_monarch/overview.php

    r816 r818  
    411411
    412412        "if (\$sortorder==\"desc\")".
    413             "return ( \$a < \$b ) ? 1 : -1;".
     413            "return ( \$a > \$b ) ? 1 : -1;".
    414414        "else if (\$sortorder==\"asc\")".
    415             "return ( \$a > \$b ) ? 1 : -1;" );
     415            "return ( \$a < \$b ) ? 1 : -1;" );
    416416
    417417    if( isset( $jobs ) && count( $jobs ) > 0 )
     
    499499    if( $sortorder == "asc" )
    500500    {
     501        asort( $sorted );
     502    }
     503    else if( $sortorder == "desc" )
     504    {
    501505        arsort( $sorted );
    502     }
    503     else if( $sortorder == "desc" )
    504     {
    505         asort( $sorted );
    506506    }
    507507
Note: See TracChangeset for help on using the changeset viewer.