[2.1.3][Request] Sort folders first or last

Developers
Gorki
2013-06-10
2014-03-14
  • Gorki
    Gorki
    2013-06-10

    Hi,

    I (and my users too) like to have folders first or last (according to sort order)

    I added object_type order in :
    \apilib\lib\docmgr\lib\search_function.inc.php :
    line 260:
    if ($sortField=="rank") $sql .= " ORDER BY object_type ".$rank." ".$sortDir;
    else $sql .= " ORDER BY object_type ".$sortField." ".$sortDir;

     
  • Mong
    Mong
    2014-03-14

    Are you able to browse collections with folders first or last, or does this only apply to searches?