ok so i have a hw assignment where i have to sort using radix sort but funny thing is teacher hasnt taught us radix sort. he explained the idea but didnt show any example code or anything. i know you start by sorting the last digit of the number and but all the 0's together, all the 1's together, etc. but i dont know how to compare just the last digits. then the 2nd to last digits.
say you have to sort these values: 1324, 3495 0129, 3490. how would i do that? i really need help on this. ive looked radix sort up on google but its just not helping. please reply!