Python Forum
sorting with numbers in text
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sorting with numbers in text
#4
nice!

what i did in C was just deal with the numbers. they were compared in such a way that the shorted number was prefixed by enough '0' characters to make it be the same length as the longer one. it was done as part of the actual character-by-character comparison. that would be the wrong way to do it in Python and i figured the right way was probably already done (so i didn't want to re-invent another wheel). i need to spend more time with module re so i quickly envision how it can solve many problems like this.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
sorting with numbers in text - by Skaperen - Jul-17-2021, 11:48 PM
RE: sorting with numbers in text - by DeaD_EyE - Jul-18-2021, 08:14 AM
RE: sorting with numbers in text - by snippsat - Jul-18-2021, 10:14 AM
RE: sorting with numbers in text - by Skaperen - Jul-19-2021, 10:30 PM
RE: sorting with numbers in text - by Skaperen - Jul-19-2021, 10:42 PM
RE: sorting with numbers in text - by Skaperen - Jul-20-2021, 01:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  reformatting text with comma separated numbers Skaperen 4 2,701 May-07-2020, 06:14 AM
Last Post: anbu23

Forum Jump:

User Panel Messages

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