Add printA() in sort.