Court order ends in trouble for author (6)
I believe the answer is:
writer
'author' is the definition.
(I know that writer is a type of author)
'court order ends in trouble for' is the wordplay.
'court order' becomes 'writ' (I've seen this before).
'ends in' indicates one should take the final letters.
The last letters of 'trouble for' are 'er'.
'writ'+'er'='WRITER'
(Other definitions for writer that I've seen before include "Quiller" , "Scribe, author" , "Author; correspondent" , "Pope, for example" , "See 4" .)