COLUMBIA, S.C. - A South Carolina appellate court says judges shouldn't get involved in how students' grades are calculated.

A three-judge panel of the state Court of Appeals ruled Friday that a trial judge should've dismissed a student's lawsuit challenging district officials' recalculation of his grade.

When a student transferred to a Greenville County school from out of state, district officials in 2012 calculated his grade-point average and ranked him first in his class. But after another student's parents challenged that ranking, the district recalculated the GPA, subsequently ranking the new student sixth.

The new student sued, and a trial judge ordered the district to restore his No. 1 ranking.

On Friday, the appellate judges said courts shouldn't interfere with districts' internal decisions without evidence of corruption or other misdeeds.