alpha-sort list where each entry contains more than one line

  • Thread starter Thread starter Jean Chicago
  • Start date Start date
J

Jean Chicago

How do I alpha-sort a list where each entry contains more than one line? For
example, a person's name (line 1) and his organizational affiliation (line 2)?

Each technique I try sorts each and every line, so the person gets separated
from his organization and the alpha-list is meaningless.
 
The easiest workaround is to use Ctrl-H (Find and Replace) to convert your
multi-pagraph entries into single paragraphs. Assuming that each entry has
certain similar line headings (Name, Organization, Address, etc.), you could
search for "^pOrganization" and replace all occurrences with
"^lOrganization." (^p is the search string for a paragraph marker, and ^l is
the search string for a line break.) Repeat that process with each line of
the entry until each entry consists of a single paragraph. Then the sort
should be easy.

Another way would be to put the data in a table so that each entry is a line
in the table.

Jerry
 
Back
Top