Branch: Tag:

2013-03-11

2013-03-11 16:34:46 by Chris Angelico <rosuav@gmail.com>

Sort directory listings in 'pike -x httpserver'

49:    "<th align='right'>Type</th>"    "<th align='right'>Size</th></tr>\n";    -  foreach( get_dir( dir ); int i; string fn ) +  foreach( sort( get_dir( dir ) ); int i; string fn )    {    Stdio.Stat s = file_stat( combine_path(dir, fn) );    if( !s )