def hard_sort_magnitude(l):
    """Takes a list of positive and negative numbers, and sorts them according to their absolute values. The list [3, -2, 1] would normally get sorted to [-2, 1, 3], but we want you to return [1, -2, 3] instead. protip: python's default sort order is ascending"""
    return sorted(l, key=abs)