stack sort done