Auto arrange order

Hi,
I can’t figure out how does the auto arrange sort plugins, maybe it just moves them to nearest free grid point… Anyhow, I thought it would be really nice if the function (or maybe add another function) would sort the plugins somehow based on key ranges… What do you think?
Matej