I want to sort a fixed set of strings like "Text files", "Image files", "Audio files", "Video files", "Application Files", "Other files" in a string array in the same order I have mentioned.
Example1, if my string array input is like this
inputval[0] = "Other files";
inputval[1] = "Image files";
inputval[2] = "Text files";
my output array should have values like this
outputval[0] = "Text files";
outputval[1] = "Image files";
outputval[2] = "Other files";
Example 2, if my string array input is like this
inputval[0] = "Application files";
inputval[1] = "Image files";
inputval[2] = "Video files";
my output array should have values like this
outputval[0] = "Image files";
outputval[1] = "Video files";
outputval[2] = "Application files";
Please can somebody help me in achieving this
Image files
,Text files
... are types and not strings? – Schaliasos May 28 at 9:01