Fix decreasing sort by file size

fixes #77
pull/93/head
qjqqyy 2018-05-28 01:15:57 +08:00 committed by Adrian Perez
parent 6f812eba8e
commit 2b2244551f
1 changed files with 1 additions and 1 deletions

View File

@ -1229,7 +1229,7 @@ ngx_http_fancyindex_cmp_entries_size_desc(const void *one, const void *two)
ngx_http_fancyindex_entry_t *first = (ngx_http_fancyindex_entry_t *) one;
ngx_http_fancyindex_entry_t *second = (ngx_http_fancyindex_entry_t *) two;
return (first->size > second->size) - (first->size < second->size);
return (first->size < second->size) - (first->size > second->size);
}