I am trying to work on a sorting algorithm for this structure. Since I am not that well versed in algorithms, I was wondering if there are any guru's here willing to help?
The sort is driven by a string in the file name bounded by the first hyphen from the left, e.g. for the file 06CP02MajDep-ET_pre the sort is driven by the string beginning –ET_
Not every term in the list below will have a file. Some terms may have greater than 1 (and an alpha sort may be used in that case).
-Info_
-TOC_
-AB_
-ES_
-FES
-Intro_
-EtioPath_
-EtioPath-LP
-Epi_
-Epi-LP
-CT_
-CT-LP
-MP_
-MP-LP
-UN_
-UN-LP
-ET_
-ET-LP
-MKT_
-MKT-LP
-TM
-PL_
-Meth_
-BB_
-T0
-T1
-T2
-T3
-T4
-F0
-F1
-F2
All Others
The sort is driven by a string in the file name bounded by the first hyphen from the left, e.g. for the file 06CP02MajDep-ET_pre the sort is driven by the string beginning –ET_
Not every term in the list below will have a file. Some terms may have greater than 1 (and an alpha sort may be used in that case).
-Info_
-TOC_
-AB_
-ES_
-FES
-Intro_
-EtioPath_
-EtioPath-LP
-Epi_
-Epi-LP
-CT_
-CT-LP
-MP_
-MP-LP
-UN_
-UN-LP
-ET_
-ET-LP
-MKT_
-MKT-LP
-TM
-PL_
-Meth_
-BB_
-T0
-T1
-T2
-T3
-T4
-F0
-F1
-F2
All Others