only sort results if we have too
reduce duplicate logcache updates per run