Not really, because you do group by one set of columns and sort groups by unrelated column.
Think how would you execute such query without using temporary table and file sort ? If you do not see obvious way MySQL quite likely can’t do anything ether.
Note your query is also possibly wrong as you sort by timestamp but not all iterms in the group may have same timestamp.