Added mutable array sort_with_context method.