make sort, clear code