diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 15ec1e4396..02e45d52fd 100644 --- a/src/wp-includes/general-template.php +++ b/src/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";