change post order to stack