original_string: public static function asort_objects_by_property(array &$objects, $property, $sortflag = core_collator::SORT_STRING) {
          $original = $objects;
          foreach ($objects as $key => $object) {
              $objects[$key] = $object->$property;
          }
          $result = self::asort($objects, $sortflag);
          self::restore_array($objects, $original);
          return $result;
      }
code: public static function asort_objects_by_property(array &$objects, $property, $sortflag = core_collator::SORT_STRING) {
          $original = $objects;
          foreach ($objects as $key => $object) {
              $objects[$key] = $object->$property;
          }
          $result = self::asort($objects, $sortflag);
          self::restore_array($objects, $original);
          return $result;
      }
code_tokens: public static function asort_objects_by_property ( array & $ objects , $ property , $ sortflag = core_collator :: SORT_STRING ) { $ original = $ objects ; foreach ( $ objects as $ key => $ object ) { $ objects [ $ key ] = $ object -> $ property ; } $ result = self :: asort ( $ objects , $ sortflag ) ; self :: restore_array ( $ objects , $ original ) ; return $ result ; }
docstring: Locale aware sort of objects by a property in common to all objects
  
  @param array $objects An array of objects to sort (handled by reference)
  @param string $property The property to use for comparison
  @param int $sortflag One of core_collator::SORT_NUMERIC, core_collator::SORT_STRING, core_collator::SORT_NATURAL, core_collator::SORT_REGULAR
  optionally "|" core_collator::CASE_SENSITIVE
  @return bool True on success
docstring_tokens: Locale aware sort of objects by a property in common to all objects