updated natural order map function