Can someone please explain how i can possibly sort a linked-list by an object name alphabetically.
//so lets say i have an Animal:
public Animal()
{
name = null;
age = 0;
mass = 0;
}
and wanna create random objects of this animal in main(), and insert them to a linked-list randomly. how can i then sort this linked-list of animals alphabetically by their name property :(