Added the compareTo method to sort the basic blks in a list.