Fixed sql order to show first to last executed query.