old_contents: """
  This tests sorting of SOLR resources. 
  """
  
  from django.core.management.base import BaseCommand
  from django.db.models import Q
  from hs_core.models import BaseResource
  from hs_core.search_indexes import BaseResourceIndex
  from pprint import pprint
  from haystack.query import SearchQuerySet
  
  
  def debug_harvest():
      sqs = SearchQuerySet().all().order_by('author_lower')
      for s in sqs: 
          print("author: " + s.author)
          print("author_lower: " + s.author_lower)
  
  
  class Command(BaseCommand):
      help = "Print debugging information about logical files."
  
      def add_arguments(self, parser):
          pass
  
      def handle(self, *args, **options):
          debug_harvest()
  
new_contents: """
  This tests sorting of SOLR resources.
  """
  
  from django.core.management.base import BaseCommand
  from haystack.query import SearchQuerySet
  
  
  def debug_harvest():
      sqs = SearchQuerySet().all().order_by('author_lower')
      for s in sqs:
          print("author: " + s.author)
          print("author_lower: " + s.author_lower)
  
  
  class Command(BaseCommand):
      help = "Print debugging information about logical files."
  
      def add_arguments(self, parser):
          pass
  
      def handle(self, *args, **options):
          debug_harvest()
  
subject: fix flake8