PennController for IBEX › Forums › Support › sepWithN function reverses item order › Reply To: sepWithN function reverses item order
December 11, 2020 at 7:39 pm
#6444
Jeremy
Keymaster
Hi Yanru,
Try replacing this line from the definition of SepWith:
newArray.push(main.pop());
with this instead:
newArray.push(main.shift());
Let me know whether that worked for you
Jeremy