finish sort