sorted createLog implemented