Code:
SELECT DISTINCT LISTINO_BAR.REPARTO FROM REPARTI INNER JOIN LISTINO_BAR ON REPARTI.IDREP = Val(LISTINO_BAR.REPARTO) ORDER BY LISTINO_BAR.REPARTO
but i need to sort from only a numeric value and not to the all in field LISTINO_BAR.REPARTO
note:
the numeric value are dinamic, i can have:
987-....
12-...
0-....
ecc