Crafting a Specific Prompt for Generating a Python Function to Sort a List