Avevo capito bene...

e' errata la struttura della tabella. La tabella dovrebbe essere:
codice:
id  |  agente   |  valore
-------------------------
 1  |  agente1  |   4 
 2  |  agente2  |   7
 3  |  agente3  |   8 
 4  |  agente4  |   9
 5  |  agente5  |   1
-------------------------
e poi ordini per quello che vuoi.