/**
  * Sorts arrays, leaves objects as is.
  *
  * @param $object
  *
  * @return array|bool
  */
 public static function recursive_object_sort($object)
 {
     if (!is_array($object)) {
         return $object;
     }
     foreach ($object as &$value) {
         if (is_array($value)) {
             BC_Utility::recursive_object_sort($value);
         }
     }
     return ksort($object);
 }