Get the parent ID on sort event in case icon is clicked