public static ArrayList<PolygonProjection> sort(PolygonProjection[] polygons)
	{
		ArrayList<PolygonProjection> sorted = new ArrayList<PolygonProjection>();
		sorted.add(polygons[0]);
		for(int i = 1; i < polygons.length; i ++)
		{
			for(int j = sorted.size() - 1; j >= 0; j --)
			{
				if(polygons[i].priority >= sorted.get(j).priority)
				{
					sorted.add(j + 1, polygons[i]);
					break;
				}
				else if(j == 0)
				{
					sorted.add(0, polygons[i]);
					break;
				}
			}
		}
		return sorted;
	}