Layout-ignorant text alphabetizer