original_string: protected static function order_all_observers() {
          foreach (self::$allobservers as $classname => $observers) {
              \core_collator::asort_objects_by_property($observers, 'priority', \core_collator::SORT_NUMERIC);
              self::$allobservers[$classname] = array_reverse($observers);
          }
      }
code: protected static function order_all_observers() {
          foreach (self::$allobservers as $classname => $observers) {
              \core_collator::asort_objects_by_property($observers, 'priority', \core_collator::SORT_NUMERIC);
              self::$allobservers[$classname] = array_reverse($observers);
          }
      }
code_tokens: protected static function order_all_observers ( ) { foreach ( self :: $ allobservers as $ classname => $ observers ) { \ core_collator :: asort_objects_by_property ( $ observers , 'priority' , \ core_collator :: SORT_NUMERIC ) ; self :: $ allobservers [ $ classname ] = array_reverse ( $ observers ) ; } }
docstring: Reorder observers to allow quick lookup of observer for each event.
docstring_tokens: Reorder observers to allow quick lookup of observer for each event .