Zkuste tuto klauzuli ORDER BY s podmínkou - ORDER BY IF(sale_ends = DATE(NOW()), 0, 1), sale_ends DESC