[Chapel Merge] Restrict 'sort()' to only support 1D rectangular a

Branch: refs/heads/master
Revision: 9140202
Author: bradcray
Log Message:

Merge pull request #16896 from bradcray/sort-1d-rect-only

Restrict ‘sort()’ to only support 1D rectangular arrays

[reviewed by @ben-albrecht]

In issue #16888 a user pointed out that our sort() routine currently
accepts sparse arrays, but then doesn’t really do anything useful
with them (it was not intended to support them). Previously, an
error message was generated for multidimensional arrays. This
extends that error message to also support non-rectangular arrays
and updates the message slightly to reflect that.

Modified Files:
A test/library/packages/Sort/errors/sortSparse.chpl
A test/library/packages/Sort/errors/sortSparse.good
M modules/packages/Sort.chpl
M test/arrays/userAPI/arrayOps2D-sorted.good

Compare: https://github.com/chapel-lang/chapel/compare/5e691d171579...9140202498ca