# File lib/mongoid/contexts/enumerable.rb, line 278
      def sort(documents)
        return documents if options[:sort].blank?
        documents.sort_by do |document|
          options[:sort].map do |key, direction|
            Sort.new(document.read_attribute(key), direction)
          end
        end
      end