Hello i made a query in which i am arranging data according to the current date but the problem is the result is coming in the form of older to newer . how i can i achieve this by newer to older . here is my query
$date = "select CAST(post_date AS DATE) AS dated from wp_hdflvvideoshare group by dated order by (DATE_SUB(CURDATE(), INTERVAL 20 DAY))";
$date_sql=$wpdb->get_results($date);
Like i am getting results in form of
oct nov dec
i want it in
dec nov oct
TRy this ::