(Re)-implement natural and case sorting
[geeqie.git] / src / img-view.cc
index 663926f..9f50773 100644 (file)
@@ -1320,7 +1320,7 @@ static LayoutWindow *view_new_layout_with_fd(FileData *fd)
        LayoutWindow *nw;
 
        nw = layout_new(nullptr, nullptr);
-       layout_sort_set(nw, options->file_sort.method, options->file_sort.ascending);
+       layout_sort_set_files(nw, nw->options.file_view_list_sort.method, nw->options.file_view_list_sort.ascend, nw->options.file_view_list_sort.case_sensitive);
        layout_set_fd(nw, fd);
        return nw;
 }