proper sorting of issues