in reply to Re: Re: Sorting an array II
in thread Sorting an array II

Stops the error but doesn't solve the problem.

You may note that the first code snippet uses keys, which isn't what the OP wants...