# HG changeset patch # User zas_ # Date 1261226959 0 # Node ID 763c254bc57a3b941a2d2fdf6ccf46bca25c41b8 # Parent f64e346a3d9c21c5651a7244f43b1fc64dc5f3f8 Store sort parameters in appropriate variables. diff -r f64e346a3d9c -r 763c254bc57a src/view_dir_list.c --- a/src/view_dir_list.c Thu Dec 10 17:48:43 2009 +0000 +++ b/src/view_dir_list.c Sat Dec 19 12:49:19 2009 +0000 @@ -138,11 +138,13 @@ GList *old_list; gboolean ret; FileData *fd; + SortType sort_type = SORT_NAME; + gboolean sort_ascend = TRUE; old_list = VDLIST(vd)->list; ret = filelist_read(vd->dir_fd, NULL, &VDLIST(vd)->list); - VDLIST(vd)->list = filelist_sort(VDLIST(vd)->list, SORT_NAME, TRUE); + VDLIST(vd)->list = filelist_sort(VDLIST(vd)->list, sort_type, sort_ascend); /* add . and .. */ @@ -215,7 +217,7 @@ } else { - match = filelist_sort_compare_filedata_full(fd, old_fd, SORT_NAME, TRUE); + match = filelist_sort_compare_filedata_full(fd, old_fd, sort_type, sort_ascend); if (match == 0) g_warning("multiple fd for the same path"); }