JArrayHelper::sortObjects() is using the wrong value for $locale argument in many places.
Merge pull request #1184 from elinw/sortobjectserror

JArrayHelper::sortObjects() is using the wrong value for $locale argumen...