working, write sorted output to usb