I have a list of records in database class
D1.1: First
D2.12: second
D1.14: third
D2.8: fourth
D2.2: fifth
D2.3: fifth
D1.7: fifth
D2: fifth
D1.5: fifth
How should I sort by taking the consideration the codes of D like 1.1, 2.12. 1.14 etc ?
The output required should be below.
D1.1: First
D1.14: third
D1.5: fifth
D1.7: fifth
D2: fifth
D2.12: second
D2.2: fifth
D2.3: fifth
D2.8: fourth
D1.14afterD1.5butD2.12comes beforeD2.2?? Once (for D1) you seem to be sorting numerically, the other time (for D2) you seem to be sorting string-like ..... what do you really want???