human: 编写一个代码，将以下序列按升序排序。 输入：
6，2，8，9，1
 bot: 以下是一个示例代码，可以将给定的序列按升序排序：
def sort_sequence(sequence):
    for i in range(len(sequence)):
        for j in range(i+1, len(sequence)):
            if sequence[i] > sequence[j]:
                sequence[i], sequence[j] = sequence[j], sequence[i]
    return sequence

sequence = [6, 2, 8, 9, 1]
sorted_sequence = sort_sequence(sequence)
print(sorted_sequence)