Create Stack sort