lib/arid_cache/cache_proxy/result_processor.rb
def order_in_database?
        if !@options.raw? && (is_cached_result? || is_activerecord?)
          @options.order_by_key? ? true : false
        else
          false
        end
      end
# Order in the database if an order clause has been specified and we
# have ActiveRecords or a CachedResult.
#
# If :raw is true we always order in memory.
Order in the database if an order clause has been specified and we
have ActiveRecords or a CachedResult.

If :raw is true we always order in memory.
Order in the database if an order clause has been specified and we have ActiveRecords or a CachedResult . If : raw is true we always order in memory .
def order_in_database?
        if !@options.raw? && (is_cached_result? || is_activerecord?)
          @options.order_by_key? ? true : false
        else
          false
        end
      end
def order_in_database? if ! @options . raw? && ( is_cached_result? || is_activerecord? ) @options . order_by_key? ? true : false else false end end
Order in the database if an order clause has been specified and we
have ActiveRecords or a CachedResult.
Order in the database if an order clause has been specified and we have ActiveRecords or a CachedResult .