@@ -190,12 +190,12 @@ function C.name(a, b, cfg)
190190 return node_comparator_name_ignorecase_or_not (a , b , true , cfg )
191191end
192192
193- function C .modification_time (a , b )
193+ function C .modification_time (a , b , cfg )
194194 if not (a and b ) then
195195 return true
196196 end
197197
198- local early_return = folders_or_files_first (a , b )
198+ local early_return = folders_or_files_first (a , b , cfg )
199199 if early_return ~= nil then
200200 return early_return
201201 end
@@ -224,7 +224,7 @@ function C.suffix(a, b, cfg)
224224 if early_return ~= nil then
225225 return early_return
226226 elseif a .nodes and b .nodes then
227- return C .name (a , b )
227+ return C .name (a , b , cfg )
228228 end
229229
230230 -- dotfiles go second
@@ -233,7 +233,7 @@ function C.suffix(a, b, cfg)
233233 elseif a .name :sub (1 , 1 ) ~= " ." and b .name :sub (1 , 1 ) == " ." then
234234 return false
235235 elseif a .name :sub (1 , 1 ) == " ." and b .name :sub (1 , 1 ) == " ." then
236- return C .name (a , b )
236+ return C .name (a , b , cfg )
237237 end
238238
239239 -- unsuffixed go third
@@ -245,7 +245,7 @@ function C.suffix(a, b, cfg)
245245 elseif a_suffix_ndx and not b_suffix_ndx then
246246 return false
247247 elseif not (a_suffix_ndx and b_suffix_ndx ) then
248- return C .name (a , b )
248+ return C .name (a , b , cfg )
249249 end
250250
251251 -- finally, compare by suffixes
@@ -257,18 +257,18 @@ function C.suffix(a, b, cfg)
257257 elseif not a_suffix and b_suffix then
258258 return false
259259 elseif a_suffix :lower () == b_suffix :lower () then
260- return C .name (a , b )
260+ return C .name (a , b , cfg )
261261 end
262262
263263 return a_suffix :lower () < b_suffix :lower ()
264264end
265265
266- function C .extension (a , b )
266+ function C .extension (a , b , cfg )
267267 if not (a and b ) then
268268 return true
269269 end
270270
271- local early_return = folders_or_files_first (a , b )
271+ local early_return = folders_or_files_first (a , b , cfg )
272272 if early_return ~= nil then
273273 return early_return
274274 end
@@ -282,7 +282,7 @@ function C.extension(a, b)
282282 local a_ext = (a .extension or " " ):lower ()
283283 local b_ext = (b .extension or " " ):lower ()
284284 if a_ext == b_ext then
285- return C .name (a , b )
285+ return C .name (a , b , cfg )
286286 end
287287
288288 return a_ext < b_ext
@@ -307,7 +307,7 @@ function C.filetype(a, b, cfg)
307307
308308 -- same filetype or both nil, sort by name
309309 if a_ft == b_ft then
310- return C .name (a , b )
310+ return C .name (a , b , cfg )
311311 end
312312
313313 return a_ft < b_ft
0 commit comments