Issue #2930268 by VitalyM, eyilmaz: Fixed context arrays should be sorted using ksort() instead of asort() prior to hashing to ensure consistency with more than one context.