Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Ronny,

    I see you solved your issue, would you mind posting the code you used please?

    Thread Starter rjhardaway

    (@rjhardaway)

    sicilian1970 –

    For my site, I have only one list to display. I dug into the File Away code and discovered the file where the sort order was set to ascending, and I changed to descending sort.

    ../wp-content/plugins/file-away/lib/inc/inc.sort.php

    Here is where I changed the code:
    =========================

    <?php

    defined(‘fileaway’) or die(‘Water, water everywhere, but not a drop to drink.’);

    $limit = $limit && is_numeric($limit) ? round($limit, 0) : false;

    if(!$limit)

    {
    /******* CHANGED SORT_ASC TO SORT_DESC IN THESE TWO LINES *******/
    if(phpversion() < ‘5.4’) array_multisort($rawnames, SORT_DESC, SORT_STRING, $links, $locs, $exts, $fulls, $dirs, $times, $dynamics);

    else array_multisort($rawnames, SORT_DESC, SORT_NATURAL, $links, $locs, $exts, $fulls, $dirs, $times, $dynamics);

    }

    ====================
    Ronny

    Thank you for your help Ronnie, sorted.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sort File Away List Descending’ is closed to new replies.