+ added sorting variable for specialty codes