{selector
	{unit "human" "bullet"}

	{group
		{sort 	{in_range 10}}
		{sort	{attacking}}
		{sort	{class human} {weapon "bullet"}}
		{sort	{class human} {weapon}}
		{sort	{class human}}
		{sort	{threating}}
		{sort	distance}
	}
}