renamed from mapOrder to orderMap.