FIX incorrect sorting during fancy assignment

Bug reported by @perimosocordiae on #3264

One of the tests added here fails on master in `TestCSR.test_fancy_indexing_multidim_set`