diff --git a/shared-operations/src/functions/common/pageIndexesSorting.ts b/shared-operations/src/functions/common/pageIndexesSorting.ts index 9340220c1..e4522a74c 100644 --- a/shared-operations/src/functions/common/pageIndexesSorting.ts +++ b/shared-operations/src/functions/common/pageIndexesSorting.ts @@ -32,6 +32,8 @@ function duplexSort(pages: number|number[]): number[] { } /** + * TODO: This code is bugged. With even pages it is just duplexSort() and with odd pages, a page is duplicated! + * * Arranges pages for booklet printing (last, first, second, second last, ...). * @param pages A list of page indexes, or the number of total pages in the document (which will be converted into a list of page indexes). * @returns A booklet-sorted list of page indexes.