Python Forum
sorting a list of tuples based on date
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sorting a list of tuples based on date
#3
To sort a list in place, use the sort method of the list (phones.sort(key = get_key)).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: sorting a list of tuples based on date - by ichabod801 - Aug-10-2018, 02:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare current date on calendar with date format file name Fioravanti 1 474 Mar-26-2024, 08:23 AM
Last Post: Pedroski55
  unable to remove all elements from list based on a condition sg_python 3 672 Jan-27-2024, 04:03 PM
Last Post: deanhystad
  Create dual folder on different path/drive based on the date agmoraojr 2 669 Jan-21-2024, 10:02 AM
Last Post: snippsat
  Python date format changes to date & time 1418 4 915 Jan-20-2024, 04:45 AM
Last Post: 1418
  Adding values with reduce() function from the list of tuples kinimod 10 3,089 Jan-24-2023, 08:22 AM
Last Post: perfringo
  List Sorting Problem ZZTurn 5 1,546 Sep-22-2022, 11:23 PM
Last Post: ZZTurn
  select Eof extension files based on text list of filenames with if condition RolanRoll 1 1,659 Apr-04-2022, 09:29 PM
Last Post: Larz60+
  Sorting List finndude 9 2,742 Jan-27-2022, 09:37 PM
Last Post: Pedroski55
  Date format and past date check function Turtle 5 4,742 Oct-22-2021, 09:45 PM
Last Post: deanhystad
  sorting a list of lists by an element leapcfm 3 2,067 Sep-10-2021, 03:33 PM
Last Post: leapcfm

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020