Maintain stack in host-side for sorting