Ericlese / pcsxgc

Automatically exported from code.google.com/p/pcsxgc
0 stars 0 forks source link

Alphabetical Sorting Optimization #103

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Put "Alundra.bin" and "Alundra 2.bin", "Driver.bin" and "Driver 2" (Folder), 
or any other game series in the iso folder
2. Open Isos in WiiSX
3. U will see that the sorting is not correct. The longer strings like "Alundra 
2.bin" are at the first position followed by smaller strings.
Means: Alundra 2.bin -> Alundra.bin -> Driver 2 (folder) -> Driver.bin

What is the expected output? What do you see instead?
A correct list of games. Example: Alundra, Alundra 2, Driver, Driver 2, Crash 
Bandicoot, Crash Bandicoot 2, Crash Bandicoot 3...

What version of CubeSX or WiiSX are you using? On what console?
WiiSX Beta2.1

Are you using HLE BIOS or a real BIOS (SCPH1001, etc)?
SCPH1001

Which core type is being used, Dynamic Recompiler or Interpreter?
Dynmaic

Please provide any additional information below.
First of all, thank u so much for the alphabetical sorting of folders and 
files. It's a really clear structure now.
I think the easiest way to get a perfect alphabetical game list, is to compare 
the strings (before the extension like .bin or .cue).
To create the array you have to compare the length and the numbers of the 
strings. Shorter strings have higher priority than longer strings, smaller 
numbers have higher priority than higher numbers etc.

Original issue reported on code.google.com by starlord...@googlemail.com on 17 Jul 2010 at 10:48