- String[] tosort = src.toArray(new String[0]),
- sorted = src.toArray(new String[0]);
- for (int j = 0, jSize = sorted.length; j < jSize; j++)
- {
- tosort[j] = tosort[j].toLowerCase();
- }
- jalview.util.QuickSort.sort(tosort, sorted);
- // construct array with all sources listed
- int i = 0;
- for (int j = sorted.length - 1; j >= 0; j--, i++)
- {
- tosort[i] = sorted[j];
- }
- return tosort;
+
+ Collections.sort(src, String.CASE_INSENSITIVE_ORDER);
+ return src.toArray(new String[src.size()]);