Sorts vocabularies by its weight and label.
array $vocabularies: An array of \Drupal\taxonomy\Plugin\Core\Entity\Vocabulary objects.
function taxonomy_vocabulary_sort(array &$vocabularies = array()) {
// @todo Remove error suppressing when http://drupal.org/node/1799600 is
// fixed.
@uasort($vocabularies, 'Drupal\\Core\\Config\\Entity\\ConfigEntityBase::sort');
}