log unsorted and sorted vertices