Added characters sorting by frequency