Usually, you would only require GROUP BY if you were trying to calculate an aggregate function such as the SUM, COUNT, AVG etc on a column.
In this case, you are not specifying any such function, so it is unclear what you are trying to do.
Perhaps you are simply trying to express an ORDER BY? In any case, I suspect it would be best if you read and learn a little more about SQL.
BTW I have noticed, in particular, that MySQL and sqllite are extremely forgiving when users specify non-standard SQL commands and you cannot rely on or expect such permissive behaviour across all DB engines.
Best wishes.