ReadonlyArray: fix sort
signature, closes #2301
#2303
Merged
sort
signature, closes #2301
#2303