activeQSorter method modified to incoporate the sorting criterion of ConditionalBuffer object