I want to select `name` and `nametype` from a table called `names`, but prioritized on the `nametype`.

```
table names

name        nametype    address    id
simon           01       xx         1
simon           02       xx         2 
simon           03       xx         3 
karen           01       xx         4
william         03       xx         5 
william         01       xx         6
william         02       xx         7

```

I want to write a query that selects the `name` with either `nametype` = 01 or 02 or 03, in that sort order.
I only want the row with `nametype` = 01, the other 2 rows should not be
selected.

How can I achieve this in sql, I need to find out how to mark a name already selected.