Of course this all came to a head when I was a junior and the school system couldn't find a teacher for Calculus for myself and the couple of other students who wanted it which pretty much killed my college prospects, so aced the ASVAB, DLPT, and EDPT and enlisted.
This is such a great idea! And it sounds like it works well in practise, too. I’ve often pondered the idea of separating classes by ability rather than age, and this is a really practical method of achieving it.
A similar idea is to group children by reading level which makes classes function more smoothly since students finish reading assignments in similar periods of time.
It was "innovative," in a way I think we're coming to regret, to suggest that all 8-year-olds (for example) must be at the same level across every subject, and none of them should ever be taught alongside a group of mostly 6- or 10-year-olds.
The best school system I ever attended rigorously divided classes between social and academic --- for social classes (gym, health, social studies, homeroom) one attended at one's grade level, while for academic classes, (English, other languages, science, math) one worked at one's grade level (but with a cap of 4 grade levels through 8th grade, so a 4th grader couldn't take high school classes) --- after 8th grade this cap was removed, and students could take any classes which they could qualify for academically. To facilitate this, some teachers were also accredited as faculty at a nearby college, and if necessary arrangements were made either for college professors to come to the school and teach, or students travelled to the college.
Most students graduated with at least a little college credit, and many received a college degree along with their high school diploma --- until the Mississippi State Supreme Court decided that it was illegal because it conferred an unseemly advantage on some students with no corresponding compensation for students who were unable to avail themselves of it academically.