def normalize_listing_output(results)
      lines = []
      results.each_line do |line|
        line = line.gsub(/#.*/, '').strip
        lines << line unless line.empty?
      end
      lines.sort
    end
def normalize_listing_output(results)
      lines = []
      results.each_line do |line|
        line = line.gsub(/#.*/, '').strip
        lines << line unless line.empty?
      end
      lines.sort
    end
Takes a list of rubies / items, 1 per line and strips comments and blank lines.