Fixes duplicated todo in due to sorting logic.