add sort to Cstudy