diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..620e749db443fa4dfb025de171caaaa49702701f --- /dev/null +++ b/.DS_Store @@ -0,0 +1 @@ +Bud1spblob�bplibbwspblob�bplist00� ]ShowStatusBar[ShowToolbar[ShowTabView_ContainerShowSidebar\WindowBounds[ShowSidebar  _{{87, 574}, {920, 464}} #/;R_klmno� �libvSrnlong  @� @� @� @ EDSDB `� @� @� @ \ No newline at end of file diff --git a/lib/quick-sort.js b/lib/quick-sort.js index 23f9eda57f7383b5291361e4593cf2fdef5409ba..a860b41503761d8543a4f68d6b0999d9e51a9dd3 100644 --- a/lib/quick-sort.js +++ b/lib/quick-sort.js @@ -107,8 +107,9 @@ function doQuickSort(ary, comparator, p, r) { } function cloneSort(comparator) { - let template = SortTemplate.toString(); - let templateFn = new Function(`return ${template}`)(); + // let template = SortTemplate.toString(); + // let templateFn = new Function(`return ${template}`)(); + let templateFn = (...args) => SortTemplate(...args); return templateFn(comparator); }