- fixed string buffer error
 - added sorting to student and teacher