In Alice in Wonderland, Lewis Carroll always made thinly masked critiques of the Victorian age he was living in. Once such criticism is the Knave's trial and the Queen of Hearts attitude: sham trials with guilt being pre-determined.
The Knave of Hearts is accused of allegedly stealing the Queen of Hearts' tarts, where in fact it was Alice who did so. The Queen of Hearts had made up her mind and wanted the Knave to be beheaded.
A trial is set, but it is only a sham trial. Those in power have pre-determined the outcome, and only having the trial to pretend that justice is being done.
Here is how the dialog goes, from Chapter 12:
'Let the jury consider their verdict,' the King said, for about the twentieth time that day.
'No, no!' said the Queen. 'Sentence first - verdict afterwards.'
'Stuff and nonsense!' said Alice loudly. 'The idea of having the sentence first!'
'Hold your tongue!' said the Queen, turning purple.
'I won't!' said Alice.
'Off with her head!' the Queen shouted at the top of her voice.
As you can see, the Queen wants "sentence first, verdict afterwards!".
Alice protests loudly, but the Queen now turns on her, and wants those who voice opposition and tell the truth to be the ones who are to be punished.