Added sorting and clone methods to NdMapping objects