[Chapel Merge] Adjust sortAllIdxTypes to call isSorted, fix isSor

Branch: refs/heads/main
Revision: 77e71e6
Author: mppf
Log Message:

Merge pull request #17750 from mppf/fix-sortAllIdxTypes-overflow

Adjust sortAllIdxTypes to call isSorted, fix isSorted for differing idxType

This PR adjusts sortAllIdxTypes to call isSorted and adjusted the
implementation of isSorted implementation to work with non-int index
types.

Reviewed by @bradcray - thanks!