Update of /cvsroot/freevo/freevo/src/audio
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19766

Modified Files:
        audioitem.py 
Log Message:
Fix the advanced sort. Since 'trackno' is a number, but the sort is alphabetical,
we pad the numbers with 0's to make it sort properly. Fixed my problem with
'9' showing up at the end of the list.

For some reason, it's still returning
01
02
03
04
05
06
07
08
9
10
11



Index: audioitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/audio/audioitem.py,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -d -r1.53 -r1.54
*** audioitem.py        9 Jun 2004 20:16:16 -0000       1.53
--- audioitem.py        25 Jun 2004 23:11:43 -0000      1.54
***************
*** 10,13 ****
--- 10,31 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.54  2004/06/25 23:11:43  outlyer
+ # Fix the advanced sort. Since 'trackno' is a number, but the sort is alphabetical,
+ # we pad the numbers with 0's to make it sort properly. Fixed my problem with
+ # '9' showing up at the end of the list.
+ #
+ # For some reason, it's still returning
+ # 01
+ # 02
+ # 03
+ # 04
+ # 05
+ # 06
+ # 07
+ # 08
+ # 9
+ # 10
+ # 11
+ #
  # Revision 1.53  2004/06/09 20:16:16  dischi
  # fix crash
***************
*** 136,140 ****
          if mode == 'advanced':
              # sort by track number
!             return '%s-%s' % (String(self['trackno']), String(self.url))
          return self.url
  
--- 154,158 ----
          if mode == 'advanced':
              # sort by track number
!             return '%0.3i-%s' % (int(self['trackno']), String(self.url))
          return self.url
  



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to