SELECT * FROM nometabella WHERE stato = 'si' ORDER BY tipo, data DESC

p.s. dai un'occhiata anche al manuale