Have a two methods, which sort Lists by one of the elements field value.
public static void sortItems(String sortingType, List items) { if (!s