refactor: sort check case