FATSort is a tool written in C that sorts data on FAT12, FAT16 and FAT32 partitions. It has support for LFNs.