Local times of ranked continuous semimartingales