Fix sorting of LiftRanges

To properly sort LiftRanges replace element entries with
&lt;element name="text">blah blah&lt;/element> with correct entry
&lt;text>blah blah&lt;/text>
Thanks for the suggestion, I will eliminate that duplication of code.