Yeah you're pretty much right. From my (somewhat limited) experience it's the priority boarding first (executive class and status pax), then economy is done back to front, for SFO-YYZ on the A320 economy boarding is done in 3 batches I think (or maybe only 2, don't remember exactly).