codice:
SELECT * FROM tabella
ORDER BY CAST(data AS DATE)