std: add sort method to ArrayHashMap and MultiArrayList

This also adds `std.sort.sortContext` and
`std.sort.insertionSortContext` which are more advanced methods that
allow overriding the `swap` method. The former calls the latter for now
because reworking the main sort implementation is a big task that can be
done later without any changes to the API.
6e49ba77f3Andrew Kelley committed on 3/10/2022, 6:13:17 PMparentf736cde
3 files changedLine totals unavailable