Question: I have a `TThread` Instance and I would like to wait for a user input.
The Thread loads something, waits for the user to click a button and then continues it's task.

I was thinking about setting a global bool to true, yet this wouldn't work too well with instances I think and the thread would have to check the var state in a loop and it seems a little unprofessional.

Is there a safe method for the tthread class to wait for a user input?

Answer: 
Create a formula field that will result in the sorting that you desire, then group the formula field.

For example:

```
If {table.order_code}=0 Then
  1000000000
Else
  {table.order_code}

```
You can use `Specified order` where you can specify as required or if you need 0 as the last group why don't you group `descending order.`