heapSort take the place of sortOne when sort the openList