I have table like
test
+---------------------+-------+
| date_in | title |
+---------------------+-------+
| 2018-01-01 00:00:00 | foo |
| 2018-01-02 00:00:00 | bar |
| 2018-01-03 00:00:00 | man |
| 2018-01-04 00:00:00 | foo |
| 2018-01-05 00:00:00 | test |
+---------------------+-------+
my desired result is
+---------------------+-------+
| date_in | title |
+---------------------+-------+
| 2018-01-05 00:00:00 | test |
| 2018-01-04 00:00:00 | foo | -- see this
| 2018-01-01 00:00:00 | foo | -- see this
| 2018-01-03 00:00:00 | man |
| 2018-01-02 00:00:00 | bar |
+---------------------+-------+
I have tried below query and other several queries but it doesn't work
select * from test order by title, date_in desc
Here http://sqlfiddle.com/#!9/1dd33f/4 SQLFiddle with schema.