Ticket #3436: handler_sorting.diff

File handler_sorting.diff, 555 bytes (added by spam@…, 14 years ago)

Patch: add SQL 'ORDER BY'

  • handler.php

     
    114114    $PATH_TREE = array();
    115115    $dirs = explode(':', setting('VideoStartupDir', hostname));
    116116    $sh = $db->query('SELECT DISTINCT videometadata.filename
    117                         FROM videometadata');
     117                        FROM videometadata ORDER BY videometadata.filename');
    118118    while ($file = $sh->fetch_col()) {
    119119        $file = dirname($file);
    120120    // Figure out the base...