Placeholder matching: Fixed sorting bug