#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1144
Task: _

</think>

Write a Python function that takes a list of integers and returns the list sorted in ascending order using a custom sorting algorithm (such as insertion sort or bubble sort), without usin
Generated: 2026-02-12T21:52:51.618222
"""

def insertion_sort(arr):
    for i in range(1, len(arr)):
        key = arr[i]
        j = i - 1
        while j >= 0 and key < arr[j]:
            arr[j + 1] = arr[j]
            j -= 1
        arr[j + 1] = key
    return arr

if __name__ == '__main__':
    test_data = [12, 11, 13, 5, 6]
    sorted_data = insertion_sort(test_data)
    print("Sorted list:", sorted_data)