addChar sort implemented, no idea if it works