Add Misc::getCharacterOrder and Misc::getLineOrder