added complexSort methods to sort multiple data types