diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 15ec1e4396..02e45d52fd 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -1483,7 +1483,7 @@ function wp_get_archives( $args = '' ) { } } } elseif ( ( 'postbypost' == $r['type'] ) || ('alpha' == $r['type'] ) ) { - $orderby = ( 'alpha' == $r['type'] ) ? 'post_title ASC ' : 'post_date DESC '; + $orderby = ( 'alpha' == $r['type'] ) ? 'post_title ASC ' : 'post_date DESC, ID DESC '; $query = "SELECT * FROM $wpdb->posts $join $where ORDER BY $orderby $limit"; $key = md5( $query ); $key = "wp_get_archives:$key:$last_changed"; diff --git a/wp-includes/version.php b/wp-includes/version.php index 4b55c00b9a..9fa706705c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31451'; +$wp_version = '4.2-alpha-31452'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.