update comparePrio to support location-based while using heap