![]() |
|
|||||||
| SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
sorting by adding leading 0 to small numbers
Is there are way to within studio not externally add a leading 0 to strings like 1 thru 9. so when sorting it will sort
01 02 .. 09 10 instead of 1 10 2 I guess I am looking for a sort method that does this thanks |
|
#2
|
||||
|
||||
|
Where is the data coming from? Can you generate it as an array of integers instead of an array of strings? Integers sort numerically; strings sort lexically (i.e. as text, not as numbers). So if you want them treated as numbers, store them as numbers rather than as text.
__________________
-- Greg |
|
#3
|
|||
|
|||
|
Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sorting | nathanm | SageTV Studio | 3 | 11-12-2006 11:15 AM |
| Library sorting | darkside | SageTV Software | 1 | 06-19-2004 10:09 PM |
| Sorting Guide | m0ng00se30 | SageTV Beta Test Software | 3 | 04-09-2004 01:16 PM |
| Sorting Recordings | kummell | SageTV Beta Test Software | 0 | 01-30-2004 01:38 PM |
| Sorting XMLTV | drifting | SageTV United Kingdom | 3 | 08-28-2003 10:46 AM |