About 1,080,000 results
Open links in new tab
  1. sort () in Python - GeeksforGeeks

    May 5, 2025 · sort () method in Python sort the elements of a list in ascending or descending order. It modifies the original list in place, meaning it does not return a new list, but instead changes the list it …

  2. Python list sort in descending order - Stack Overflow

    Apr 20, 2010 · If there is another variable aliasing the original list, its value afterwards will not have the elements in their original order, nor in descending order; the alias will point at a list sorted in …

  3. Sorting Techniques — Python 3.14.2 documentation

    2 days ago · For example, to sort the student data by descending grade and then ascending age, do the age sort first and then sort again using grade: This can be abstracted out into a wrapper function that …

  4. The Python Sort List Array Method – Ascending and Descending Explained ...

    Apr 12, 2020 · If you want to learn how to work with the sort() method in your Python projects, then this article is for you. This method is very powerful and you can customize it to fit your needs, so let's see …

  5. How to Use sorted() and .sort() in Python – Real Python

    Feb 24, 2025 · In this tutorial, you’ll learn how to sort various types of data in different data structures, customize the order, and work with two different ways of sorting in Python.

  6. numpy.sortNumPy v2.3 Manual

    For even better performance and reduced memory consumption, ensure that the array is already contiguous along the sort axis. The sort order for complex numbers is lexicographic.

  7. The Python Sort List Array Method – Ascending And Descending

    Sep 6, 2024 · The sort() method is an incredibly useful built-in tool for sorting Python lists in ascending or descending order. This in-place algorithm allows you to efficiently organize your data without …

  8. Python Sort in Descending Order: A Comprehensive Guide

    Mar 16, 2025 · Whether you are dealing with a list of numbers, strings, or more complex data structures like dictionaries, understanding how to perform a descending sort is crucial. This blog post will delve …

  9. 5 Best Ways to Sort the Elements of an Array in Descending ... - Finxter

    Mar 6, 2024 · The sorted() function is a built-in Python method that returns a new sorted list from the items in an iterable. By setting the reverse argument to True, we can sort the array in descending order.

  10. Sort a Python List in Descending. Order - TechBeamers

    Nov 30, 2025 · This Python tutorial explains different ways to sort lists in descending order with the help of examples and working code.