split into multiple files per sort type