Sort objects in test to fix travis errors