FD 176 (Air Asia Thailand) from MLE to DMK was diverted to BKK due to a thunderstorm at DMK. Flight landed at BKK but passengers could not get off. They fueled and flew back to DMK. They had pax who had connecting flights out of DMK and they organized it very well by taking their names while at BKK and sending the information to DMK and getting these pax off the aircraft first and onto a special van and took them to the terminal I presume. Certainly they were not in the immigration queue nor at the baggage belt when the other passengers arrived. There was no delay in other pax getting off the plane either.