Hand-written source code for TextSort project