1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-20 05:21:38 +02:00
This commit is contained in:
Justin Lin
2022-04-29 11:06:35 +08:00
parent 65b375995a
commit 671aac9d55

View File

@@ -11,6 +11,7 @@
use <_impl/_sorted_impl.scad>;
function sorted(lt, cmp = undef, key = undef) =
!is_undef(cmp) ? _sorted_cmp(lt, cmp) :
!is_undef(key) ? _sorted_key(lt, key) :
_sorted_default(lt);
let(is_cmp_undef = is_undef(cmp))
is_cmp_undef && is_undef(key) ? _sorted_default(lt) :
is_cmp_undef ? _sorted_key(lt, key) :
_sorted_cmp(lt, cmp);