public void orderCollByLeft()
{
int j = 0;
int i = 0;
int tmp = 0;
cReportControl ctl1 = null;
cReportControl ctl2 = null;
G.redim(ref m_collByLeft, this.Count);
for (i = 0; i < m_collByLeft.Length; i++)
{
m_collByLeft[i] = i;
}
for (i = 0; i < this.Count - 1; i++)
{
for (j = i; j < this.Count - 1; j++)
{
ctl1 = item(m_collByLeft[j]);
ctl2 = item(m_collByLeft[j + 1]);
if (ctl2.getLabel().getAspect().getLeft() < ctl1.getLabel().getAspect().getLeft())
{
tmp = m_collByLeft[j];
m_collByLeft[j] = m_collByLeft[j + 1];
m_collByLeft[j + 1] = tmp;
}
}
}
}