incorporated cbs output sorting into gistic wrapper script