Two white 15-year-olds admitted assault causing actual bodily harm to another pupil in a racially aggravated attack.
Helen Wareham, prosecuting, said the build-up to the lunchtime incident last year was caught on CCTV.
Thornhill school row-
Judge raps school over racism policy-
What Thornhill does to beat racism-
School's rap group promotes equalityA fight broke out between white and Bangladeshi pupils from Thornhill School, during which the victim was attacked by the defendants.
He was kicked to the ground and punched before a passer-by intervened. He needed hospital treatment for a fractured right arm. Ms Wareham said there was a school investigation into the incident.
Chris Wilson, representing one of the accused, said it was unclear who had caused the injury. His client did not regard himself as racist.
Mr Wilson said the fight was sparked by an Asian pupil's website, which was well known in the school. The dispute was started by another pupil, before becoming a brawl, and the accused pupil realised he should not have become involved.
Brian Chapman, representing the other pupil, said there had been problems in the past between the factions, before the fight started at a fried chicken takeaway in Park Lane, Sunderland.
Mr Chapman said four other pupils had been interviewed by the school and police but no action had been taken.
District judge Elsey said: "Firstly, violence is unlawful and unacceptable and secondly racism wherever it comes from stems from ignorance. The colour of a person's skin is of less importance than his character."
They were both made subject to a referral order for nine months and their parents were each ordered to pay £150 compensation and £50 costs.
The full article contains 290 words and appears in Sunderland Echo newspaper.