extracted instance, sort contexts and units by element pointer instead of sourceline
