Start at the beginning of the list. Compare the first value in the list with the next one up. If the first value is bigger, swap the positions of the two values. Move to the second value in the list.
For AI-related tasks, we use the Cerebras Inference API via the OpenAI SDK.