The pecking order of garden birds is determined by their size and weight, new research shows.