I would like this to be considered for marking as a blocking issue on the next release, so that the patch may be applied and users do not experience sort-line problems..  A patch was provided which should be compatible with any tests available for sort-lines.  The patch makes Emacs behave as it did before Emacs outlines moved to overlays for outlining and away from \r characters to denote hidden lines, that is sort-lines works on visible lines not invisible ones.  Please let me know your decision after discussion.  Thanks, Bob

To test the problem, create a simple outline file of:
-----

* Head2
   Body2

* Head1
  Body1

-----