Sort instances by tag value