I want to use ORDER BY on uniqueid with priority. My table looks like this :
+-------------+------------------+
| disposition | uniqueid |
+-------------+------------------+
| ANSWERED | 1595409523.22546 |
| NO ANSWER | 1595409523.22546 |
| BUSY | 1595409523.22546 |
| BUSY | 1595406475.22391 |
| NO ANSWER | 1595406475.22391 |
| BUSY | 1595406475.22391 |
+-------------+------------------+
I want for example on the ID: 1595409523.22546 to appear that the line where there is 'ANSWER', if there is no 'ANSWER' I want that 'NO ANSWER' is displayed otherwise BUSY etc ... The result should be :
+-------------+------------------+--+
| disposition | uniqueid | |
+-------------+------------------+--+
| ANSWERED | 1595409523.22546 | |
| NO ANSWER | 1595406475.22391 | |
| | | |
+-------------+------------------+--+
Could you help me ? Thank you !