H. G. Muller wrote on Sat, Aug 8, 2020 05:39 PM UTC:
Thanks. To be sure: for sorting square coordinates it would be best to use isort, so that a2 is sorted before a10? With the old sort I was finally able to work around the problem by using pop to access the elements; this did pop the elements in the reverse order as printr printed them. I was a bit surprised anyway that the array I tried to sort was treated as an associative array. It was created as a merge of two arrays that were built by repeated push.
Thanks. To be sure: for sorting square coordinates it would be best to use isort, so that a2 is sorted before a10? With the old sort I was finally able to work around the problem by using pop to access the elements; this did pop the elements in the reverse order as printr printed them. I was a bit surprised anyway that the array I tried to sort was treated as an associative array. It was created as a merge of two arrays that were built by repeated push.