sort correctly route path annotation based on its zPosition