Sorting Data With Python
Joe Tatusko
9 Lessons
33m
basics
python
All programmers will have to write code to sort items or data at some point. Sorting can be critical to the user experience in your application, whether itβs ordering a userβs most recent activity by timestamp, or putting a list of email recipients in alphabetical order by last name. Python sorting functionality offers robust features to do basic sorting or customize ordering at a granular level.
In this course, youβll learn how to sort various types of data in different data structures, customize the order, and work with two different methods of sorting in Python.
By the end of this tutorial, youβll know how to:
- Implement basic Python sorting and ordering on data structures
- Differentiate between
sorted()and.sort() - Customize a complex sort order in your code based on unique requirements
For this course, youβll need a basic understanding of lists and tuples as well as sets. Those data structures will be used in this course, and some basic operations will be performed on them. Also, this course uses Python 3, so example output might vary slightly from what youβd see if you were using Python 2.
Sorting Data With Python
9 Lessons 33m
2. Sorting Numbers With sorted() (03:58)
3. Sorting Strings With sorted() (02:57)
4. The reverse Parameter (01:51)
5. Passing in a key Argument (07:25)
6. The .sort() Method (04:12)
About Joe Tatusko
Joe is a manufacturing engineer turned Pythonista with interests in data wrangling and visualization.
Β» More about Joe




Billiam on Jan. 7, 2020
Very nicely presented. Easy to understand and follow. Thanks Joe.