private ArrayList<String> sortAlphanumeric(ArrayList<String> array) {
        ArrayList<String> sorted = new ArrayList<String>();
        for (String s : array) {
            sorted.add(binarySearch(s, sorted), s);
        }
        return sorted;
    }