Question: powerset ordering

Hello! I am running the same piece of maple code on different machines, and I have noticed that the powerset function returns the sets in a different order. For example,

Maple 11 (X86 64 LINUX)

> powerset(3);
            {{}, {1, 2, 3}, {2, 3}, {3}, {1, 3}, {1}, {2}, {1, 2}}

Maple 14

> powerset(3);
            {{}, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}}

I really need to iterate these sets in the same order, regardless of what machine I am on. Does anyone have any advice as to how I could force the order (to be the second order, the maple 14 order)?

 

Thank you for your time!

Susan

Please Wait...