Sort application list

Use TreeSet to sort HashSet which does not guarantee order. Also call
setSelectedIndex(0) for default.