A team of four students has won a national schools robotics competition with an autonomous sorting robot. The school says the team built the machine over five months in its after-hours workshop.