This is because when using order by, "desc" and "asc" are trimmed not from the proper position, but from the first place where they are encountered.