I have table like this
+-------------+-------------+-----------+
| id_struc | id_emply | id_boss |
+-------------+-------------+-----------+
| 1 | 1 | 0 |
| 3 | 2 | 3 |
| 6 | 4 | 1 |
| 7 | 5 | 1 |
| 9 | 6 | 3 |
| 10 | 3 | 4 |
+-------------+-------------+-----------+
I want to sort it so I can get something like this.
+-------------+-------------+-----------+
| id_struc | id_emply | id_boss |
+-------------+-------------+-----------+
| 1 | 1 | 0 |
| 6 | 4 | 1 |
| 7 | 5 | 1 |
| 10 | 3 | 4 |
| 3 | 2 | 3 |
| 9 | 6 | 3 |
+-------------+-------------+-----------+
It's sort by id_boss
. So every id_emply
couldn't be at the top of their bosses. Can I possibly do that?