Legend sorting issue is fixed