From 2b2244551f1ebb934ed3962ddadab24a4da79af9 Mon Sep 17 00:00:00 2001 From: qjqqyy Date: Mon, 28 May 2018 01:15:57 +0800 Subject: [PATCH] Fix decreasing sort by file size fixes #77 --- ngx_http_fancyindex_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ngx_http_fancyindex_module.c b/ngx_http_fancyindex_module.c index 22948e6..64f98a1 100644 --- a/ngx_http_fancyindex_module.c +++ b/ngx_http_fancyindex_module.c @@ -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); }