removed call to printf that printed size request
added g_error to sort function. added some sorting tests