puoi mettere un bel ID autoincrementante nel db associato a ogni riga che inserisci e poi aggiungi alla query

"order by id desc"