Order attributes by name

Closes #9879
This commit is contained in:
Mike Jolley 2015-12-27 21:32:55 +00:00
parent 1eb9f83f77
commit c1b8a20d39
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ function wc_get_attribute_taxonomies() {
if ( false === ( $attribute_taxonomies = get_transient( 'wc_attribute_taxonomies' ) ) ) {
global $wpdb;
$attribute_taxonomies = $wpdb->get_results( "SELECT * FROM " . $wpdb->prefix . "woocommerce_attribute_taxonomies" );
$attribute_taxonomies = $wpdb->get_results( "SELECT * FROM " . $wpdb->prefix . "woocommerce_attribute_taxonomies order by attribute_name ASC;" );
set_transient( 'wc_attribute_taxonomies', $attribute_taxonomies );
}