/*
* else make a copy of the list, and remove any null value just in case,
* as it would cause errors looking up the features Map
+ * sort in alphabetical order for consistent output behaviour
*/
List<String> types = new ArrayList<String>(Arrays.asList(type));
types.remove(null);
+ Collections.sort(types);
return types;
}