added vbdefines
changed bubble sort to use sort descriptors
tests