Radix sort starts with the last digit.
transcript
Codes are too long to count at once. Cut each code into digits. Each digit gets its own counting pass. Which digit goes first?
Take seven three-digit codes. Pass one sorts by the last digit. It gives 720, 355, 436, 457, 657, 329, 839. Ties keep their input order.
Pass two sorts by the middle digit. Ties keep the order from pass one. Pass three sorts by the first digit.
Take twenty one and twelve. Last digit first ends with 12, 21. That is right. First digit first ends with 21, 12. The last pass has the last word.
A pass moves only items whose digit differs. Items with equal digits keep their old order. So earlier passes are never undone.
In base ten there are ten passes. That is two million and a hundred steps. In base 256 there are four passes, and 801,024 steps.
Last digit first. Full breakdown in the lecture.