function _configuration_sort_context in Configuration Management 6
Helper function to sort an array of context items by key
1 string reference to '_configuration_sort_context'
- configuration_check_context in ./
configuration.module - Check and fix the integrity of the context object in case changes were made to the data
File
- ./
configuration.module, line 1813 - Provide a unified method for defining site configurations abstracted from their data format. Various data formats should be supported via a plugin architecture such as XML, YAML, JSON, PHP
Code
function _configuration_sort_context($a, $b) {
return (int) $a->key > (int) $b->key ? 1 : -1;
}