Line Cleanup

Sort, deduplicate, remove blank lines, trim each line, reverse line order.