fix vocab term order on profiles

#3314 added function to sort profile terms in a more sensical way; took out unnecessary use of objects in preparation array